Difference between revisions of "Flutter"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) Tag: visualeditor |
Rafahsolis (talk | contribs) m (→Built Value) Tag: visualeditor |
||
| Line 13: | Line 13: | ||
File > Settings > Editor > Live Templates | File > Settings > Editor > Live Templates | ||
| − | === Built Value Header === | + | ===Built Value Header=== |
*Abbreviation blth | *Abbreviation blth | ||
| Line 27: | Line 27: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | === Built Value === | + | ===Built Value=== |
| − | * Abbreviation blt | + | *Abbreviation blt |
| − | * Description Built Value | + | *Description Built Value |
<syntaxhighlight lang="dart"> | <syntaxhighlight lang="dart"> | ||
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> { | abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> { | ||
| − | / | + | /* fields go here. Examples: |
| + | @nullable | ||
| + | String get country; | ||
| + | int get id; | ||
| + | */ | ||
$NAME$._(); | $NAME$._(); | ||
Revision as of 08:46, 22 October 2019
Flutter
Install
- Install Fluter SDK
- Install Android Studio
- Add Flutter bin to $PATH
- Install Flutter & Dart plugins in Android Studio
- Add user to plugdev group
Built Value Android Studio Live Templates
File > Settings > Editor > Live Templates
Built Value Header
- Abbreviation blth
- Description Built Value Header
library $LIBRARY$;
import 'dart:convert';
import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
part '$LIBRARY$.g.dart';
Built Value
- Abbreviation blt
- Description Built Value
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
/* fields go here. Examples:
@nullable
String get country;
int get id;
*/
$NAME$._();
factory $NAME$([updates($NAME$Builder b)]) = _$$$NAME$;
}