This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| class MoneyRow extends StatelessWidget { | |
| const MoneyRow({ | |
| Key key, | |
| @required this.name, | |
| @required this.amount, | |
| }) : super(key: key); | |
| final name; // String or Widget |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>The change you wanted was rejected (422)</title> | |
| <meta name="viewport" content="width=device-width,initial-scale=1"> | |
| <style> | |
| body { | |
| background-color: #EFEFEF; | |
| color: #2E2F30; | |
| text-align: center; |
This file contains hidden or 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
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:mobile/utils/formatters.dart'; | |
| class Countdown extends StatelessWidget { | |
| const Countdown({ | |
| Key key, | |
| @required this.millisecondsToTime, | |
| this.style, |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| class AnimatedCount extends ImplicitlyAnimatedWidget { | |
| AnimatedCount({ | |
| Key key, | |
| @required this.count, | |
| @required Duration duration, | |
| Curve curve = Curves.linear, | |
| }) : super(duration: duration, curve: curve, key: key); |
This file contains hidden or 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
| class Screen extends StatelessWidget { | |
| const Screen({ | |
| Key key, | |
| this.topFlex = 1, | |
| this.topText = "", | |
| this.topImageUri = "", | |
| this.bottomFlex = 1, | |
| this.bottomText = "", | |
| this.bottomImageUri = "", | |
| }) : super(key: key); |
This file contains hidden or 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
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:mobile/utils/lifecycle_event_handler.dart'; | |
| /// Attaches to a [Widget] and calls [fetchData] every [interval] seconds | |
| /// or upon app reactivation. | |
| mixin ContinuousRequest<T extends StatefulWidget> on State<T> { | |
| /// A subscription that calls [fetch] data every [interval] seconds |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| /// This is possibly an issue with the flutter framework where | |
| /// when returning a container for FAB, it won't show a | |
| /// floating snackbar but it will show a fixed one | |
| class FloatingIssue extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| floatingActionButton: Container(), |
This file contains hidden or 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
| buildscript { | |
| ext.kotlin_version = '1.3.50' | |
| repositories { | |
| google() | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:3.3.2' | |
| classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
OlderNewer