simpler-flutter-snippets README
Snippets for Flutter

Wrappers for Flutter
A set of helpful Flutter and Dart Snippets for day to day Flutter development.
Installation
Features
Simply Flutter / Dart Snippets
I'm working hard to select all the day to day widgets, so wait for more Snippets!.
Snippet Widgets |
Description |
|
|
stateFullWidget --> |
StatefulWidget() |
|
|
stateLessWidget --> |
StatelessWidget() |
|
|
caaaaaa --> |
crossAxisAlignment: CrossAxisAlignment.choice, |
|
|
maaaaaa --> |
mainAxisAlignment: MainAxisAlignment.choice, |
|
|
mainAxi --> |
mainAxisSize: MainAxisSize.min |
|
|
ftxt --> |
Text() |
|
|
fstyle --> |
TextStyle() |
|
|
1xHeight --> |
const SizedBox(height: action), |
|
|
1xWidth --> |
const SizedBox(width: action), |
|
|
1xx --> |
const SizedBox(width: 10, height: 10,), |
|
|
SizedBox --> |
const SizedBox.choice |
|
|
fic --> |
const Icon(Icons.clear); |
|
|
ficbtn --> |
const IconButton() |
|
|
fcontainer --> |
Container() |
|
|
fsaffold --> |
Scaffold() |
|
|
listViewB --> |
ListView.builder() |
|
|
listViewS --> |
ListView.separated() |
|
|
gridViewB --> |
GridView.builder() |
|
|
gridViewC --> |
GridView.count() |
|
|
pageViewB --> |
PageView.builder() |
|
|
padding --> |
choice: const EdgeInsets.all(10), |
|
|
fedgeAll --> |
EdgeInsets.all(32.0) |
|
|
fedgeOnly --> |
const EdgeInsets.only() |
|
|
fedgSym --> |
const EdgeInsets.symmetric(vertical: 8, horizontal: 8,), |
|
|
felebtn --> |
ElevatedButton() |
|
|
fimg --> |
Image.[choice |
assets,network |
]; |
borderCircular --> |
borderRadius: BorderRadius.circular(action), |
|
|
borderAll --> |
borderRadius: BorderRadius.all(Radius.circular(action)), |
|
|
fshowDialog --> |
showDialog() |
|
|
frow --> |
Row |
|
|
fcol --> |
Column |
|
|
flist --> |
List listName = []; |
|
|
fcolorHax --> |
Color(0xFF9C27B0), |
|
|
fvalueNotifier --> |
ValueNotifier customValue = ValueNotifier(false); |
|
|
fanimatedBuilder --> |
late Animation animations; |
|
|
fvariable --> |
Just Variables |
|
|
fmap --> |
Map<dynamic, dynamic> mapName = {}; |
|
|
fset --> |
Set setName = {}; |
|
|
fgetarr --> |
dynamic get name => returnValue; |
|
|
fsettarr --> |
set name(dynamic value) => some = value; |
|
|
ff --> |
|
|
|
Snippet Cycles |
Description |
lifeInit --> |
InitState() |
lifeDispose --> |
Dispose() |
lifeReassemble --> |
Reassemble() |
lifeDidChangeD --> |
DidChangeD() |
lifeDidUpdateW --> |
DidUpdateW() |
lifeDiActivate --> |
DiActivate() |
lifeCycle --> |
Cycle() |
Snippet Widgets |
Description |
fnav --> |
Navigator.push() |
mateApp --> |
MaterialApp() |
cupeApp --> |
CupertinoApp() |
fsvg --> |
SvgPicture.asset() |
flocale --> |
LocaleKeys..tr(),() |
dddddddddddddddddLog ---> |
log('data: choice') |
repo --> |
repository() |
into --> |
interactor() |
usecase --> |
usecases() |
fcontroller --> |
controller() |
context --> read |
context.read<>().add(); |
context --> router |
context.router.push(); |
getttttt --> |
GetIt.I<>()..add() |
toStr --> |
toString() |
fSimplerFlutterReCase --> |
just cases() |
trrrrr Repo --> |
try - repo() |
trrrrr Simple --> |
try - simple() |
trrrrr Pro --> |
try - dop() |
futureFunc --> |
Future |
freezed --> |
freezed model |
Wrappers Widgets |
Description |
visibility on Menu |
Wrap with Value Listenable |
ValueListenableBuilder |
[default] - true |
Wrap with Future Builder |
FutureBuilder |
[default] - true |
Wrap with StateFullBuilder |
StateFullBuilder |
[default] - true |
Wrap with Tween Builder |
Tween Builder |
[default] - false |
Wrap with AnimatedBuilder |
AnimatedBuilder |
[default] - false |
Wrap with StreamBuilder |
StreamBuilder |
[default] - false |
Wrap with SingleChildScroll |
SingleChildScrollViewBuilder |
[default] - false |
Imports |
Description |
fimport --> MaterialApp |
import Material App |
fimport --> CupertinoApp |
import Cupertino App |
fimport --> Provider |
import Provider |
fimport --> Locale |
import Locale |
fimport --> autRoute g |
import autRoute g |
fimport --> flutter bloc |
import flutter bloc |
fimport --> equatable |
import equatable |
fimport --> injectable |
import injectable |
--------------------------------- |
-------------------------------------------------------------- |
Flutter just logger
Logger Type |
Description |
from Clipboard Logger |
log(data: ${ from clipboard } ) |
only Interpolation Logger |
log(data: ${ } ) - with only interpolation |
simple Logger |
log(data:) - simple |
Wrappers
"SimplerFlutterSnippets.WrapperOnMenu": "show",
"SimplerFlutterSnippets.FutureBuilder": true,
"SimplerFlutterSnippets.ValueListenableBuilder": true,
"SimplerFlutterSnippets.StateFullBuilder": true,
"SimplerFlutterSnippets.TweenBuilder": true,
"SimplerFlutterSnippets.StreamBuilder": true,
"SimplerFlutterSnippets.SingleChildScrollViewBuilder": true,
"SimplerFlutterSnippets.AnimatedBuilder": true,
"SimplerFlutterSnippets.TypeLogger": "from Clipboard Logger"
SimplerFlutterSnippets.TypeLogger
- working only on keyShorts snippets.customLogger
Release Notes
0.1.5
- Changed Log's String -> data to
0.1.4
- Bug Fixed
- Optimized The Extension
0.1.3
0.1.0
- added logger
- snippets.customLogger add keybinding
0.0.8
Wrappers
- StateFullBuilder
- AnimatedBuilder
- StreamBuilder
- SingleChildScrollViewBuilder
Snippets
- fvalueNotifier
- freezed
- frow
- fcol
- flist
- fcolorHax
- fvalueNotifier
- fanimatedBuilder
- fvariable
- fmap
- fset
- fgetarr
- fsettarr
- ff
0.0.7
Tween Builder
hide / show
0.0.3-4-6
- wrappers
- ValueListableBuilder
- FutureBuilder
0.0.2
0.0.1
Initial release
Enjoy!
| |