Architecture Sample For Flutter
Demo https://yu6hooke.github.io/flutter_contract_pattern_sample/
fvm use
「Run And Debug」メニューから => debug, profile, release
自動生成ファイルは畳む
{
...
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"*.dart": "$(capture).freezed.dart, $(capture).g.dart"
}
}
"contract": {
"prefix": "cont",
"body": [
"import 'package:freezed_annotation/freezed_annotation.dart';",
"",
"part '$TM_FILENAME_BASE.freezed.dart';",
"",
"@freezed",
"class $1UiState with _\\$$1UiState {",
" const factory $1UiState({",
" ",
" }) = _$1UiState;",
"}",
"",
"@freezed",
"sealed class $1Action with _\\$$1Action {",
" const factory $1Action.sampleAction() = SampleAction;",
"}",
"",
"@freezed",
"sealed class $1Effect with _\\$$1Effect {",
" const factory $1Effect.none() = None;",
"}",
]
}