26/06/2022
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:provider/provider.dart'; | |
| import 'method.dart'; | |
| import 'getterSetter.dart'; | |
| import 'widget.dart'; | |
| // stateless ini akan menjadi widget model. Widget model ini akan berisi List TextField dinamis // | |
| // List TextFielld akan menyesuaikan dengan banyak panjang list String atau Function(String). // | |
| // panjang LIst<String> dan List<Function(String)> harus sama// | |
| class WidgetEditGist extends StatelessWidget { |
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
| @override | |
| void setState(fn) { | |
| super.setState(fn); | |
| } |
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:provider/provider.dart'; | |
| extension ProviderStoreBuildContextX on BuildContext { | |
| /// Read the store once, doesn't subscribe a BuildContext to update. | |
| AppStore readStore() => read<AppStore>(); | |
| /// Watch the store by subscribing to a BuildContext. | |
| AppStore watchStore() => watch<AppStore>(); | |
| /// Select a piece of the store, subscribing a BuildContext to update only |
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
| // MIT License | |
| // | |
| // Copyright (c) 2022 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
OlderNewer