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:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { |
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 Foo { | |
| const Foo(); | |
| void foo() {} | |
| } | |
| class Bar extends Foo { | |
| const Bar(); |
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'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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
| await runZoned<Future<void>>( | |
| () async => runApp(app), | |
| onError: _reportError, | |
| ); | |
| FlutterError.onError = (FlutterErrorDetails details) { | |
| Zone.current.handleUncaughtError(details.exception, details.stack); | |
| }; |
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
| dependencies: | |
| logging: ^0.11.3+2 | |
| sentry: ^2.2.0 | |
| insightops_dart: ^0.0.6 |
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
| @override | |
| Widget build(BuildContext context) => Scaffold( | |
| body: SingleChildScrollView( | |
| child: Padding( | |
| padding: const EdgeInsets.symmetric(horizontal: 16), | |
| child: Column( | |
| children: <Widget>[ | |
| const _Logo(), | |
| _buildEmailField(), | |
| _buildPasswordField(), |
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
| @override | |
| Widget build(BuildContext context) => Scaffold( | |
| body: SingleChildScrollView( | |
| child: Padding( | |
| padding: const EdgeInsets.symmetric(horizontal: 16), | |
| child: Column( | |
| children: <Widget>[ | |
| Padding( | |
| padding: const EdgeInsets.only(top: 145, bottom: 102), | |
| child: SvgPicture.asset( |
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 SharedPrefTokenRepository implements TokenRepository { | |
| @override | |
| Future<void> save(String token) async => | |
| (await SharedPreferences.getInstance()).setString(_keyToken, token); | |
| @override | |
| Future<String> load() async => | |
| (await SharedPreferences.getInstance()).getString(_keyToken); | |
| static const String _keyToken = 'token'; |
NewerOlder