-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
map progress, added theme checks to theme model
- Loading branch information
1 parent
4f4b0c4
commit 4db41e1
Showing
22 changed files
with
441 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:fst_app_flutter/screens/campus_map_screen/campus_map_view_mobile.dart'; | ||
import 'package:fst_app_flutter/screens/campus_map_screen/campus_map_view_tablet.dart'; | ||
import 'package:fst_app_flutter/widgets/orientation_layout.dart'; | ||
import 'package:fst_app_flutter/widgets/screen_type_layout.dart'; | ||
|
||
class CampusMapView extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return ScreenTypeLayout( | ||
mobile: OrientationLayout( | ||
portrait: (context) => CampusMapViewMobilePortrait(), | ||
landscape: (context) => CampusMapViewMobileLandscape(), | ||
), | ||
tablet: OrientationLayout( | ||
portrait: (context) => CampusMapViewTabletPortrait(), | ||
landscape: (context) => CampusMapViewTabletLandscape(), | ||
), | ||
); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:fst_app_flutter/models/preferences/theme_model.dart'; | ||
import 'package:fst_app_flutter/screens/campus_map_screen/campus_map_view_mobile_state.dart'; | ||
import 'package:fst_app_flutter/screens/campus_map_screen/campus_map_view_stateful.dart'; | ||
import 'package:provider/provider.dart'; | ||
|
||
class CampusMapViewMobileLandscape extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Consumer<ThemeModel>( | ||
builder: (context, themeModel, child) => CampusMapViewStateful( | ||
state: CampusMapViewMobileLandscapeState(themeModel: themeModel), | ||
), | ||
), | ||
); | ||
} | ||
} | ||
|
||
class CampusMapViewMobilePortrait extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Consumer<ThemeModel>( | ||
builder: (context, themeModel, child) => CampusMapViewStateful( | ||
state: CampusMapViewMobilePortraitState(themeModel: themeModel), | ||
), | ||
), | ||
); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
lib/screens/campus_map_screen/campus_map_view_mobile_state.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:fst_app_flutter/models/preferences/theme_model.dart'; | ||
import 'package:fst_app_flutter/screens/campus_map_screen/campus_map_view_state.dart'; | ||
|
||
class CampusMapViewMobileLandscapeState extends CampusMapViewState { | ||
CampusMapViewMobileLandscapeState({@required ThemeModel themeModel}) : super(themeModel); | ||
} | ||
|
||
class CampusMapViewMobilePortraitState extends CampusMapViewState { | ||
CampusMapViewMobilePortraitState({@required ThemeModel themeModel}) : super(themeModel); | ||
} |
Oops, something went wrong.