main.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main(){
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setEnabledSystemUIMode(SystemUiMode.leanBack);
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text("Flutter - Hide Status Bar")
),
),
)
);
}
More flutter tutorials
- flutter – AlertDialog background color
- flutter – AlertDialog width
- flutter – AlertDialog height
- flutter – AlertDialog actions center
- flutter – Expanded example
- flutter – Expanded flex
- flutter – Align exact position
- flutter – Container transform rotation
- flutter – BoxDecoration example
- flutter – Container circle border
- flutter – Container gradient border
- flutter – How to change status bar color
- flutter – Transparent status bar
- flutter – How to show hide status bar
- flutter – AppBar center title