Skip to content

Commit 84657c5

Browse files
committed
hide status bar
1 parent 23a2d06 commit 84657c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:flutter/services.dart';
23
import 'package:flutter_samples/animations/main_animations.dart';
34
import 'package:flutter_samples/app_clone/main_apps_clone.dart';
45
import 'package:flutter_samples/appbar_sliverappbar/main_appbar_sliverappbar.dart';
@@ -29,12 +30,12 @@ class MyApp extends StatefulWidget {
2930

3031
class MyAppState extends State<MyApp> {
3132
onButtonTap(Widget page) {
32-
Navigator.push(
33-
context, MaterialPageRoute(builder: (BuildContext context) => page));
33+
Navigator.push(context, MaterialPageRoute(builder: (BuildContext context) => page));
3434
}
3535

3636
@override
3737
Widget build(BuildContext context) {
38+
SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]);
3839
return Scaffold(
3940
appBar: AppBar(
4041
title: Text("Flutter Samples"),

0 commit comments

Comments
 (0)