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
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( |
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
# we need to know the jgenhtml.jar path | |
# in this case it's static as we know where is located | |
# we can handle by running: | |
# echo `pwd`/jgenhtml-1.5.jar -> /c/Portables/jgenhtml/jgenhtml-1.5.jar | |
# and then copy a paste after the `java jar` | |
java -jar /c/Portables/jgenhtml/jgenhtml-1.5.jar $1 -o coverage/ | |
# the optimal command should look like: | |
# java -jar ./jgenhtml-1.5.jar $1 -o $2 |
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
// ADD flutter_hooks dependency in pubspec.yaml | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
import 'package:flutter/services.dart'; //FOR FilteringTextInputFormatter | |
final List<TextInputFormatter> numberInputFormatters = [ | |
FilteringTextInputFormatter.deny('.'), | |
FilteringTextInputFormatter.deny('-'), | |
FilteringTextInputFormatter.deny(' '), |
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
// STATE | |
class ProductNotifier extends ChangeNotifier{ | |
FormzStatus _status; | |
NameInput _name; | |
PriceInput _price; | |
DescriptionInput _description; | |
FormzStatus get status => this._status; |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
void main() { | |
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( | |
statusBarColor: Colors.transparent, | |
)); | |
runApp(MyApp()); | |
} |