Added missing dispose overrides in screens
This commit is contained in:
parent
560b40ca3b
commit
5f190cb99a
4 changed files with 28 additions and 0 deletions
1
lib/src/blocs/archive_bloc.dart
Normal file
1
lib/src/blocs/archive_bloc.dart
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
class ArchiveBloc {}
|
||||||
15
lib/src/screens/archive_screen.dart
Normal file
15
lib/src/screens/archive_screen.dart
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import '../blocs/archive_bloc.dart';
|
||||||
|
|
||||||
|
class ArchiveScreen extends StatefulWidget {
|
||||||
|
_ArchiveScreenstate createState() => _ArchiveScreenstate();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ArchiveScreenstate extends State<ArchiveScreen> {
|
||||||
|
final bloc = ArchiveBloc();
|
||||||
|
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -80,4 +80,10 @@ class _EventsScreenState extends State<EventsScreen> {
|
||||||
.toList(),
|
.toList(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
bloc.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,4 +65,10 @@ class _NewEventScreenState extends State<NewEventScreen> {
|
||||||
await bloc.submit();
|
await bloc.submit();
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
bloc.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue