1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
Brett Morgan
e2b77a4bf1 flutter pub upgrade (#931) 2021-10-13 10:18:41 -07:00
John Ryan
4893a24625 Migrate web dashboard to null safety (#928)
* update dependencies

* Update to cloud_firestore 2.x.x

* run dart migrate

* Fix analyzer warnings from null safety migration

* Fix errors resulting from null safety migration

* Fix info level warnings

* run flutter format

* fix tests

* remove unused import, format
2021-10-12 14:38:34 -07:00
Brett Morgan
994cdb4afa flutter pub upgrade (#926)
* flutter pub upgrade

* `desktop_photo_search`: Remove unneeded `unawaited`

Co-authored-by: John Ryan <ryjohn@google.com>
2021-10-11 14:01:27 -07:00
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
2021-10-08 14:30:28 -07:00
Brett Morgan
297f6b0b96 Upgrade deps, format, fix web/filipino_cuisine (#898)
fixes: https://github.com/flutter/samples/issues/897
2021-09-21 11:38:59 -07:00
Andrew Brogdon
4cac0e6661 Lands beta branch into master for 2.5 (#895) 2021-09-08 17:35:05 -07:00
Brett Morgan
a405fc4a9d Update the dependencies (#815) 2021-06-08 08:15:43 +10:00
Brett Morgan
40abd00a45 Adjust lint rules for experimental/web_dashboard (#820) 2021-06-08 07:48:36 +10:00
Brett Morgan
936d1fdaae Upgrading samples to flutter_lints, part 1 of n (#804) 2021-06-05 12:24:28 +10:00
Andrew Brogdon
376c666f0a Merge beta into master (#799) 2021-05-18 13:35:06 -07:00
Andrew Brogdon
8c1cd0b049 Landing beta changes in master for the new stable release (#747) 2021-03-03 11:44:35 -08:00
John Ryan
241e2c1b26 Fix cookbook scraper bugs and re-run (#697)
* fix path separator bug in cookbook scraper

* update lockfiles

* add category to image name to avoid conflicts

e.g.
testing/integration/introduction
testing/widget/introduction

* fix form_app symlink

* remove webimages directory

* remove vision_challenge

vision_challenge doesn't build on the dev channel

* update pubspec.yaml in _tool and form_app
2021-02-08 10:36:22 -08:00
Brett Morgan
9b631a2184 Split CI testing based on flutter channels (#651) 2021-01-27 18:42:33 +11:00
Brett Morgan
622e8d55d3 Migrate to the New Material Buttons (#668) 2021-01-27 13:20:50 +11:00
Sashika Nawarathne
4ae90f3aa9 Fix minor warnings (#673) 2021-01-25 12:31:38 +11:00
John Ryan
177efa2443 Fix web_dashboard analysis warnings on beta channel (#663)
fixes #660
2021-01-19 15:53:34 -08:00
Brett Morgan
6e9824dc12 flutter pub update & various fixes (#627) 2020-12-18 10:51:31 +11:00
Brett Morgan
d88f131982 flutter pub upgrade (#524) 2020-08-17 20:40:46 +10:00
John Ryan
3bc860f5df Default to mock version in web_dashboard (#505)
* use named constructors, set default app to mock version

* rename grind tasks
2020-07-28 07:21:12 -07:00
John Ryan
8a9bcfa113 [web_dashboard] add logout (#447)
* logout wip

* Use AnimatedSwitcher, change lingo from "login" to signIn"

* add automatic sign-in

* fix flashing sign in button

* sign out of FirebaseAuth and GoogleSignIn

* formatting

* change isSignedIn() to getter

* Add error handling for sign in

* improve error handling at login screen
2020-06-01 14:39:06 -07:00
John Ryan
395ae8c0bb Add firebase support to web_dashboard (#421)
* add mock data, app state, model classes

* Set up app without ChangeNotifier

* refactor

* add experiments to experimental/

* Add project-agnostic Firebase authentication code

* add sign in button

* add stub firebase API

* add firestore

* refactor code for google_sign_in

* update pubspec.lock

* switch to mocks for non-firebase version

* Add firebase instructions to the README

* fix README

* sign in silently if the user is already signed in

* add json_serializable

* update README

* ignore 'id' field on types

* Implement FirebaseItemApi

* Add build_runner instructions to README

* remove experiments directory

* add EditItemForm

* move types.dart into api.dart

* move mock and firebase configuration into the constructor

* add main_mock entrypoint

* add copyright checks to grinder script

* fix fix-copyright task

* run grind fix-copyright

* add run and generate tasks

* add run tasks to grind script

* add fillWithMockData() fix delete() in mock API

* add edit / new form dialogs

* Add charts that display entries from Firebase

* Add Entries list without editing

* refactor home page

* format

* Add entries page functionality

* Show current day in charts

* cleanup: pubspec.lock, remove type annotation

* Remove _selectedItem from Home page

Add ItemsDropdown
Use ItemsDropdown in NewEntryDialog / NewEntryForm

* rename item-category

* don't wait to show snackbar on delete

* fix circular progress indicator

* Move dialogs into dialogs.dart

* run grind fix-copyright

* remove unused import

* Refactor entry total calculation, add chart_utils library

* fix bug in chart_utils.dart

* convert CategoryChart to a stateless widget

* use a const for number of days in chart

* code review updates

- rename stream -> subscribe
- timeStamp -> timestamp
- remove latest() from API
- use FutureBuilder and StreamBuilder instead of stateful widget
- rename variables in mock_service_test.dart

* use a single collection reference in firebase API

* remove reference to stream in mock API

* Use a new type,  _EntriesEvent to improve filtering in mock API

* add analysis_options.yaml and fix (most) issues

* fix avoid_types_on_closure_parameters lint warnings

* use spread operator in dashboard.dart

* handle case where selected item in the category dropdown goes away

* use StreamBuilder + FutureBuilder on Entries page

* rename method

* use fake firebase configuration

* update pubspec.lock

* update README

* Change categories_dropdown to FutureBuilder + StreamBuilder

* Update minSdkVersion in build.gradle

SDK version 16 was failing: "The number of method references in a .dex
file cannot exceed 64K."

* update README

* Use a collection reference in FirebaseEntryApi

Already added to FirebaseCategoryApi

* Invoke onSelected in CategoriesDropdown when necessary

Also, avoid calling onSelected during a build.

* fix misnamed var

* remove unused import

* Use relative imports

* Use extension methods for DateTime utilities

* remove forms.dart

* Make Firebase instructions specific for this sample

* add copyright headers

* fix grammar

* dartfmt

* avoid setState() during build phase in CategoryDropdown

* add empty test to material_theme_builder
2020-05-26 13:14:21 -07:00
Brett Morgan
baa1f976b2 Samples maintenance (#435) 2020-05-13 09:18:26 +10:00
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>
2020-05-06 14:09:15 -07:00
John Ryan
e6c7aaf8c6 Update README.md (#422) 2020-04-27 17:42:47 -07:00
John Ryan
5a5cc8a62f remove navigation rail, update adaptive scaffold (#404) 2020-04-07 09:12:25 -07:00
John Ryan
e24fef3af5 [web_dashboard] Navigation rail update (#356)
* add new navigation_rail, update adaptive_scaffold

* add outdated routing_demo

* Add AdaptiveScaffold experiment

* clean up experimental/ directory

* remove web_dashboard from CI script

new NavigationRail widget requires the master channel
2020-03-09 16:20:01 -07:00
John Ryan
edf219354e add web_dashboard API (#333)
* add web_dashboard sample

* add docs

* address code review comments

* restructure web_dashboard

* set up provider and mock service

* add copyright headers, use relative imports

* add API class, add tests

* fmt

* rename services -> API, remove data library

* use new API in app

* add stream to items api

* convert from StreamBuilder to StreamProvider

* add subscription to Entry API

* rename API classes

* address comments

* Update README.md

* update README

* remove routing_demo
2020-03-02 16:04:10 -08:00