Sasank Tumpati
0e1355841d
Fixed ThemeData in the Flutter Samples unnecessarily includes useMaterial3 = true (Issue #2214 ) ( #2217 )
9 months ago
Miguel Beltran
93db48966c
Explicit import for Platform and kIsWeb ( #1898 )
...
Following the ideas in flutter/website#7798 I have changed the imports
needed for Platform and kIsWeb to be explicitly named.
## Pre-launch Checklist
- [ ] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [ ] I signed the [CLA].
- [ ] I read the [Contributors Guide].
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.
If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].
<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
2 years ago
Miguel Beltran
394459bd12
Enable Material 3 on provider_counter ( #1626 )
...
Co-authored-by: Brett Morgan <brettmorgan@google.com>
2 years ago
Brett Morgan
9d8aa333ee
Update for Material changes & run rebuild scripts ( #1412 )
2 years ago
Brett Morgan
58bc5d7a58
Deps update, utilize `super.key` ( #1265 )
...
* Deps update, utilize `super.key`
* `flutter format`
3 years ago
Miguel Beltran
9e9f1dea4c
Add window setup to provider_counter ( #1046 )
3 years ago
Ahmed Ashour
29339b8334
Remove unneeded types ( #949 )
3 years ago
Brett Morgan
e2e2713986
Enforce `use_key_in_widget_constructors` and `file_names` lints ( #913 )
...
* Start enforcing use_key_in_widget_constructors and file_names lints
* dart format
* analysis fixes
* analysis fixes, pt2
* analysis fixes, part 3
* Revert platform_design (test failure)
* More reverts
* Notate why we aren't enforcing a lint
3 years ago
Brett Morgan
936d1fdaae
Upgrading samples to flutter_lints, part 1 of n ( #804 )
4 years ago
Robert Piosik
f3de46714b
Fix generic type placement of Provider.of call ( #661 )
4 years ago
Filip Hracek
00d0cdf02c
Provider counter update ( #520 )
...
* Upgrade provider
* Update maintenance table
4 years ago
John Ryan
14b9a8c4c4
Flutter 1.17 updates ( #432 )
...
* Material text theme updates & flutter pub upgrade (#411 )
* Beta channel updates (#412 )
* fix deprecated usages in provider_shopper - beta channel
* fix deprecated usages in animations - beta channel
* fix deprecated usages in provider_counter - beta
* Updates additional samples for beta release (#416 )
* use headline6 instead of title
* fix another title -> headline6
Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
Co-authored-by: Andrew Brogdon <RedBrogdon@users.noreply.github.com>
5 years ago
Brett Morgan
d71180683c
flutter pub upgrade ( #178 )
5 years ago
Andrew Brogdon
28ec1b6f6c
Maintenance for provider_counter ( #165 )
5 years ago
Andrew Brogdon
3d40fa9fb2
Tweaked pubspecs, linted. ( #113 )
6 years ago
Filip Hracek
7bae186046
Finish the migration from scoped_model to provider
...
After this change, we’re managing Counter’s lifecycle with ChangeNotifierProvider.
This removes the periodic Timer. Not only does that simplify the example and makes it closer to the original, it also prevents a leaking timer (though, in this case, it’s not an issue, since the timer is needed for the whole duration of the app). I experimented with a more robust approach (having or injecting a Timer/StreamController into the Counter, and disposing of it there) but that seemed overly complex for such a simple example. This whole problem will get significantly easier with https://github.com/rrousselGit/provider/issues/46 , at which point I could reintroduce this. I will also think about a more complex Provider example, something like the venerable `bloc_complex`, with infinite-scrolling pagination and all that.
6 years ago
Filip Hracek
31edec5378
Move scoped_model_counter to provider_counter ( #82 )
...
I used `flutter create` anew, so the project structure now has additional 2 `AndroidManifest.xml` files. Everything else stayed the same, so from git’s perspective, it’s just moved files.
6 years ago