mirrored_repositories/layout_basics_stack_example
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:layout_basics_stack_example/page/stack_page.dart';

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);

  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  static final String title = 'Stack';

  @override
  Widget build(BuildContext context) => MaterialApp(
        debugShowCheckedModeBanner: false,
        title: title,
        theme: ThemeData(
          primaryColor: Colors.indigo,
        ),
        home: StackPage(),
      );
}
