Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from nuilewis/main
Added closest source calculation features, Removed exposed API keys, arranged other stuff, made UI changes, and more
- Loading branch information
Showing
30 changed files
with
801 additions
and
497 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"dart.previewFlutterUiGuides": true, | ||
"dart.previewFlutterUiGuidesCustomTracking": true | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,43 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
///{@template custom hero_dialod_route} | ||
///Custom [PageRoute] that creates an overlay dialog popup effect | ||
/// | ||
///Best used with a [Hero] animation | ||
class CustomHeroDialogRoute<T> extends PageRoute<T> { | ||
CustomHeroDialogRoute({ | ||
@required WidgetBuilder builder, | ||
RouteSettings settings, | ||
bool fullscreenDialog = false, | ||
}) : _builder = builder, | ||
super(settings: settings, fullscreenDialog: fullscreenDialog); | ||
|
||
final WidgetBuilder _builder; | ||
|
||
@override | ||
bool get opaque => false; | ||
@override | ||
bool get barrierDismissible => true; | ||
@override | ||
Duration get transitionDuration => const Duration(milliseconds: 300); | ||
@override | ||
bool get maintainState => true; | ||
|
||
@override | ||
Color get barrierColor => Colors.black54; | ||
@override | ||
Widget buildTransitions(BuildContext context, Animation<double> animation, | ||
Animation<double> secondaryAnimation, Widget child) { | ||
return child; | ||
} | ||
|
||
@override | ||
Widget buildPage(BuildContext context, Animation<double> animation, | ||
Animation<double> secondaryAnimation) { | ||
return _builder(context); | ||
} | ||
|
||
@override | ||
String get barrierLabel => 'Popup dialog open'; | ||
} |
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 @@ | ||
const String googleAPIKey = 'YOUR API KEY HERE'; |
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
Oops, something went wrong.