For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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 'dart:ui'; | |
| class Debouncer { | |
| final int milliseconds; | |
| Debouncer({ | |
| this.milliseconds = 1000, | |
| }); |
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:flutter/rendering.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
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:vector_math/vector_math_64.dart' show radians; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |
Save and close your file by typing the following
cmd :wqEnter
will only save your file
cmd :wEnter
will quit the editor without saving your file.
cmd :q!Enter
-
choco list --local-only
-
choco install ruby --version 1.9.3.55100
-
dart migrate --apply-changes
-
flutter clean
-
flutter pub get
-
flutter packages pub run build_runner build --delete-conflicting-outputs
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
| return Scaffold( | |
| appBar: AppBar( | |
| title: Text('i.e Contact'), | |
| ), | |
| body: SizedBox( | |
| height: MediaQuery.of(context).size.height, | |
| child: Column( | |
| children: [ | |
| SizedBox( | |
| height: 300, |
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
| final String responseTipoServicosEmpty = "[]"; | |
| final String responseTipoServicos = """ | |
| [ | |
| { | |
| "documento": "82.916.818/0001-13", | |
| "matricula": "0000000004", | |
| "codigoTipoServico": 1, | |
| "descricaoTipoServico": "Tipo de serviço 1" | |
| }, | |
| { |
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
| final List<ReactionDisposer> _disposers = []; | |
| @override | |
| void didChangeDependencies() { | |
| super.didChangeDependencies(); | |
| _disposers.add( | |
| reaction((_) => controller.success, (value) => null), | |
| ); | |
| } |
NewerOlder