|
|
@ -58,7 +58,7 @@ class CounterModel extends ChangeNotifier {
|
|
|
|
/// It offers two routes, one suitable for displaying as a full screen and
|
|
|
|
/// It offers two routes, one suitable for displaying as a full screen and
|
|
|
|
/// another designed to be part of a larger UI.class MyApp extends StatelessWidget {
|
|
|
|
/// another designed to be part of a larger UI.class MyApp extends StatelessWidget {
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
const MyApp({Key key}) : super(key: key);
|
|
|
|
const MyApp({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
@ -75,7 +75,7 @@ class MyApp extends StatelessWidget {
|
|
|
|
/// Wraps [Contents] in a Material [Scaffold] so it looks correct when displayed
|
|
|
|
/// Wraps [Contents] in a Material [Scaffold] so it looks correct when displayed
|
|
|
|
/// full-screen.
|
|
|
|
/// full-screen.
|
|
|
|
class FullScreenView extends StatelessWidget {
|
|
|
|
class FullScreenView extends StatelessWidget {
|
|
|
|
const FullScreenView({Key key}) : super(key: key);
|
|
|
|
const FullScreenView({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
@ -96,7 +96,7 @@ class FullScreenView extends StatelessWidget {
|
|
|
|
class Contents extends StatelessWidget {
|
|
|
|
class Contents extends StatelessWidget {
|
|
|
|
final bool showExit;
|
|
|
|
final bool showExit;
|
|
|
|
|
|
|
|
|
|
|
|
const Contents({this.showExit = false, Key key}) : super(key: key);
|
|
|
|
const Contents({this.showExit = false, Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|