Skip to content

Commit

Permalink
Bootstrapping page 32
Browse files Browse the repository at this point in the history
  • Loading branch information
bukunmialuko committed Apr 3, 2022
1 parent e6af3b8 commit bc22939
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
15 changes: 15 additions & 0 deletions lib/src/mobile_ui/32/page_32.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:flutter/material.dart';

class Page32 extends StatefulWidget {
const Page32({Key? key}) : super(key: key);

@override
State<Page32> createState() => _Page32State();
}

class _Page32State extends State<Page32> {
@override
Widget build(BuildContext context) {
return Container();
}
}
11 changes: 10 additions & 1 deletion lib/src/mobile_ui/root/root.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class RootWidget extends StatelessWidget {
},
),

/// Mobile 21 - 30
/// Mobile 21 - 40
PageButtonWidget(
page: 21,
Expand All @@ -185,6 +185,15 @@ class RootWidget extends StatelessWidget {
.to(routeName: MobileRoutes.pg21);
},
),

PageButtonWidget(
page: 32,
onPressed: () {
GetIt.I
.get<NavigationService>()
.to(routeName: MobileRoutes.pg32);
},
),
],
),
),
Expand Down
1 change: 1 addition & 0 deletions lib/src/mobile_ui/routes/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ class MobileRoutes {

/// 21 - 40
static const pg21 = "/21/";
static const pg32 = "/32/";
}
8 changes: 7 additions & 1 deletion lib/src/navigation/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import 'package:flutter_ui_kit_obkm/src/mobile_ui/9/page9.dart';
import 'package:flutter_ui_kit_obkm/src/mobile_ui/routes/routes.dart';

import '../mobile_ui/21/page_21.dart';
import '../mobile_ui/32/page_32.dart';
import 'fade_route.dart';

var routes = (RouteSettings settings) {
Expand Down Expand Up @@ -108,10 +109,15 @@ var routes = (RouteSettings settings) {
page: const Page19(),
);

/// Mobile 21 - 30
/// Mobile 21 - 40
case MobileRoutes.pg21:
return FadeRoute(
page: const Page21(),
);

case MobileRoutes.pg32:
return FadeRoute(
page: const Page32(),
);
}
};

0 comments on commit bc22939

Please sign in to comment.