-
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.
- Loading branch information
1 parent
85559b7
commit 1cc7245
Showing
23 changed files
with
438 additions
and
237 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
File renamed without changes.
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,7 @@ | ||
enum ContactPlatform { textCall, whatsapp } | ||
|
||
extension PlatformShortString on ContactPlatform { | ||
String toShortString() { | ||
return this.toString().split('.').last; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
43 changes: 41 additions & 2 deletions
43
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 |
---|---|---|
@@ -1,11 +1,50 @@ | ||
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'; | ||
import 'package:fst_app_flutter/widgets/shape_borders/arrowed_tooltip.dart'; | ||
|
||
class CampusMapViewMobileLandscapeState extends CampusMapViewState { | ||
CampusMapViewMobileLandscapeState({@required ThemeModel themeModel}) : super(themeModel); | ||
CampusMapViewMobileLandscapeState({@required ThemeModel themeModel}) | ||
: super(themeModel); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
var map = super.build(context); | ||
ArrowedTooltip shape = RightArrowTooltip( | ||
arrowLength: MediaQuery.of(context).size.width * 0.09, | ||
arrowWidth: MediaQuery.of(context).size.height * 0.05); | ||
|
||
return Scaffold( | ||
extendBodyBehindAppBar: true, | ||
body: Stack( | ||
children: [ | ||
map, | ||
buildPositionedDataWindow(context, shape), | ||
buildAppBar(context), | ||
], | ||
)); | ||
} | ||
} | ||
|
||
class CampusMapViewMobilePortraitState extends CampusMapViewState { | ||
CampusMapViewMobilePortraitState({@required ThemeModel themeModel}) : super(themeModel); | ||
CampusMapViewMobilePortraitState({@required ThemeModel themeModel}) | ||
: super(themeModel); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
var map = super.build(context); | ||
ArrowedTooltip shape = DownArrowTooltip( | ||
arrowLength: MediaQuery.of(context).size.height * 0.04, | ||
arrowWidth: MediaQuery.of(context).size.width * 0.08); | ||
|
||
return Scaffold( | ||
extendBodyBehindAppBar: true, | ||
body: Stack( | ||
children: [ | ||
map, | ||
buildPositionedDataWindow(context, shape), | ||
buildAppBar(context), | ||
], | ||
)); | ||
} | ||
} |
Oops, something went wrong.