Compare commits
2 Commits
279532ba7c
...
cb9ccc1865
Author | SHA1 | Date |
---|---|---|
Michael Thomas | cb9ccc1865 | |
Michael Thomas | be50f8b293 |
|
@ -37,19 +37,23 @@ Route<T> mapRouteBuilder<T>(BuildContext context, Widget child, CustomPage<T> pa
|
|||
replaceInRouteName: 'Screen,Route',
|
||||
routes: <AutoRoute>[
|
||||
AutoRoute(path: "/", page: MainLayout, children: [
|
||||
AutoRoute(path: "home", name: "HomePageRouter", page: HomeScreen, children: [
|
||||
CustomRoute(
|
||||
path: "",
|
||||
page: HomePageHeader,
|
||||
name: "HomeRoute",
|
||||
transitionsBuilder: TransitionsBuilders.fadeIn,
|
||||
),
|
||||
CustomRoute(
|
||||
path: "student-id",
|
||||
page: StudentIdScreen,
|
||||
transitionsBuilder: TransitionsBuilders.fadeIn,
|
||||
),
|
||||
]),
|
||||
AutoRoute(
|
||||
path: "home",
|
||||
name: "HomePageRouter",
|
||||
page: HomeScreenProvider,
|
||||
children: [
|
||||
CustomRoute(
|
||||
path: "",
|
||||
page: HomePageHeader,
|
||||
name: "HomeRoute",
|
||||
transitionsBuilder: TransitionsBuilders.fadeIn,
|
||||
),
|
||||
CustomRoute(
|
||||
path: "student-id",
|
||||
page: StudentIdScreen,
|
||||
transitionsBuilder: TransitionsBuilders.fadeIn,
|
||||
),
|
||||
]),
|
||||
AutoRoute(path: "map", page: MapScreen, children: [
|
||||
CustomRoute(
|
||||
path: "",
|
||||
|
|
|
@ -43,7 +43,7 @@ class AppRouter extends _i15.RootStackRouter {
|
|||
},
|
||||
HomePageRouter.name: (routeData) {
|
||||
return _i15.MaterialPageX<dynamic>(
|
||||
routeData: routeData, child: const _i2.HomeScreen());
|
||||
routeData: routeData, child: _i2.HomeScreenProvider());
|
||||
},
|
||||
MapRoute.name: (routeData) {
|
||||
return _i15.MaterialPageX<dynamic>(
|
||||
|
|
|
@ -7,6 +7,8 @@ import 'package:furman_now/src/screens/home/state.dart';
|
|||
import 'package:provider/provider.dart';
|
||||
|
||||
class HomeScreenProvider extends StatelessWidget {
|
||||
const HomeScreenProvider({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ChangeNotifierProvider(
|
||||
|
@ -14,7 +16,6 @@ class HomeScreenProvider extends StatelessWidget {
|
|||
child: const HomeScreen(),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class HomeScreen extends StatefulWidget {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: furman_now
|
||||
description: A new Flutter project.
|
||||
description: The place for all things Furman.
|
||||
|
||||
# The following line prevents the package from being accidentally published to
|
||||
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
||||
|
|
Loading…
Reference in New Issue