37 lines
713 B
Dart
37 lines
713 B
Dart
part of '../main.dart';
|
|
|
|
class FullScreenPage extends StatefulWidget {
|
|
|
|
final Widget child;
|
|
|
|
const FullScreenPage({Key key, this.child}) : super(key: key);
|
|
|
|
@override
|
|
_FullScreenPageState createState() => _FullScreenPageState();
|
|
}
|
|
|
|
class _FullScreenPageState extends State<FullScreenPage> {
|
|
|
|
@override
|
|
void initState() {
|
|
SystemChrome.setEnabledSystemUIOverlays([]);
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
color: Colors.black,
|
|
child: Center(
|
|
child: this.widget.child,
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
|
|
super.dispose();
|
|
}
|
|
|
|
} |