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
| Container( | |
| child: CardWidget( | |
| name: 'OGBONDA CHIZIARUHOMA', | |
| amount: 'N23,343,343', | |
| expiry: '2/02/2023' | |
| )); |
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/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | |
| //import 'misc/gymModule/gymDetailUI.dart'; | |
| void main() { |
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'; | |
| import 'package:firebase_crashlytics/firebase_crashlytics.dart'; | |
| class CrashTest extends StatefulWidget { | |
| CrashTest({Key key}) : super(key: key); | |
| _CrashTestState createState() => _CrashTestState(); | |
| } | |
| class _CrashTestState extends State<CrashTest> { | |
| @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
| library custom_image; | |
| import 'package:firebase_storage/firebase_storage.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_svg/flutter_svg.dart'; | |
| class CustomImage extends StatelessWidget { | |
| final String assetPath; | |
| final double height, width, scale; | |
| final Color color; |
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
| library custom_image; | |
| import 'package:firebase_storage/firebase_storage.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_svg/flutter_svg.dart'; | |
| class CustomImage extends StatelessWidget { | |
| final String assetPath; | |
| final double height, width, scale; | |
| final Color color; |
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 Home extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| var controller = Provider.of<HomeController>(context); | |
| return Scaffold( | |
| body: Column( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| children: <Widget>[ | |
| Text('Current Value: ${controller.counter}'), | |
| SizedBox(height:50), |
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 HomeController extends ChangeNotifier { | |
| int _counter = 0; | |
| int get counter => _counter; | |
| set counter(val) { | |
| _counter = val; | |
| notifyListeners(); | |
| } |
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
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { | |
| return MultiProvider( | |
| providers: [ | |
| ChangeNotifierProvider(builder: (_) => HomeController()), | |
| ], |
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'; | |
| Color randomColor() { | |
| List<Color> colors = [ | |
| Colors.green, | |
| Colors.red, | |
| Colors.blue, |
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 XMargin extends StatelessWidget { | |
| final double x; | |
| const XMargin(this.x); | |
| @override | |
| Widget build(BuildContext context) { | |
| return SizedBox(width: x); | |
| } |