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