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

26 Commits

Author SHA1 Message Date
Brett Morgan
82e38e5b79 Update samples for Dart 3.0.0 (#1803) 2023-05-11 12:48:09 +10:00
Brett Morgan
36e7a6ab04 Update for Flutter 3.10 beta (#1746)
## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

---------

Co-authored-by: David Iglesias <ditman@gmail.com>
Co-authored-by: Mark Thompson <2554588+MarkTechson@users.noreply.github.com>
Co-authored-by: John Ryan <ryjohn@google.com>
2023-05-11 06:16:31 +10:00
Brett Morgan
3bafa557f7 Update sdk constraint range and update runners (#1706) 2023-03-23 18:13:59 +10:00
dependabot[bot]
89b655d7f3 Bump google_sign_in from 5.4.4 to 6.0.0 in /experimental/web_dashboard (#1665) 2023-02-21 12:49:23 +11:00
Brett Morgan
3e9bb78aec Create analysis_defaults package (#1654)
* Create `analysis_defaults` package

* Update analysis_defaults/pubspec.yaml

Co-authored-by: Pierre-Louis <6655696+guidezpl@users.noreply.github.com>

---------

Co-authored-by: Pierre-Louis <6655696+guidezpl@users.noreply.github.com>
2023-02-16 23:44:16 +10:00
dependabot[bot]
c21fcd6573 Bump firebase_core, cloud_firestore and firebase_auth (#1485)
Bumps [firebase_core](https://github.com/firebase/flutterfire/tree/master/packages/firebase_core), [cloud_firestore](https://github.com/firebase/flutterfire/tree/master/packages/cloud_firestore) and [firebase_auth](https://github.com/firebase/flutterfire/tree/master/packages/firebase_auth). These dependencies needed to be updated together.

Updates `firebase_core` from 1.24.0 to 2.0.0
- [Release notes](https://github.com/firebase/flutterfire/releases)
- [Changelog](https://github.com/firebase/flutterfire/blob/master/CHANGELOG.md)
- [Commits](https://github.com/firebase/flutterfire/commits/firebase_core_web-v2.0.0/packages/firebase_core)

Updates `cloud_firestore` from 3.5.1 to 4.0.1
- [Release notes](https://github.com/firebase/flutterfire/releases)
- [Changelog](https://github.com/firebase/flutterfire/blob/master/CHANGELOG.md)
- [Commits](https://github.com/firebase/flutterfire/commits/cloud_firestore-v4.0.1/packages/cloud_firestore)

Updates `firebase_auth` from 3.11.2 to 4.0.1
- [Release notes](https://github.com/firebase/flutterfire/releases)
- [Changelog](https://github.com/firebase/flutterfire/blob/master/CHANGELOG.md)
- [Commits](https://github.com/firebase/flutterfire/commits/firebase_auth-v4.0.1/packages/firebase_auth)

---
updated-dependencies:
- dependency-name: firebase_core
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: cloud_firestore
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: firebase_auth
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-20 00:31:19 +10:00
Brett Morgan
ccd68f34e2 Beta (#1234) 2022-05-11 12:48:11 -07:00
dependabot[bot]
f2d399f750 Bump google_sign_in from 5.3.0 to 5.3.1 in /experimental/web_dashboard (#1244)
Bumps [google_sign_in](https://github.com/flutter/plugins) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/flutter/plugins/releases)
- [Commits](https://github.com/flutter/plugins/compare/google_sign_in-v5.3.0...google_sign_in-v5.3.1)

---
updated-dependencies:
- dependency-name: google_sign_in
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-11 03:17:35 -07:00
dependabot[bot]
cd70e8508a Bump cloud_firestore in /experimental/web_dashboard (#1212)
Bumps [cloud_firestore](https://github.com/FirebaseExtended/flutterfire) from 3.1.13 to 3.1.14.
- [Release notes](https://github.com/FirebaseExtended/flutterfire/releases)
- [Changelog](https://github.com/firebase/flutterfire/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FirebaseExtended/flutterfire/compare/cloud_firestore-v3.1.13...cloud_firestore_v3.1.14)

---
updated-dependencies:
- dependency-name: cloud_firestore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-04 19:13:15 +10:00
dependabot[bot]
6dda0043d3 Bump firebase_core from 1.15.0 to 1.16.0 in /experimental/web_dashboard (#1214)
Bumps [firebase_core](https://github.com/FirebaseExtended/flutterfire) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/FirebaseExtended/flutterfire/releases)
- [Changelog](https://github.com/firebase/flutterfire/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FirebaseExtended/flutterfire/compare/firebase_core-v1.15.0...firebase_core_v1.16.0)

---
updated-dependencies:
- dependency-name: firebase_core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-04 19:12:47 +10:00
dependabot[bot]
c07018b167 Bump firebase_auth from 3.3.16 to 3.3.17 in /experimental/web_dashboard (#1216)
Bumps [firebase_auth](https://github.com/FirebaseExtended/flutterfire) from 3.3.16 to 3.3.17.
- [Release notes](https://github.com/FirebaseExtended/flutterfire/releases)
- [Changelog](https://github.com/firebase/flutterfire/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FirebaseExtended/flutterfire/compare/firebase_auth-v3.3.16...firebase_auth_v3.3.17)

---
updated-dependencies:
- dependency-name: firebase_auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-04 19:00:04 +10:00
dependabot[bot]
88b524ecbc Bump json_annotation from 4.4.0 to 4.5.0 in /experimental/web_dashboard (#1176)
Bumps [json_annotation](https://github.com/google/json_serializable.dart) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/google/json_serializable.dart/releases)
- [Commits](https://github.com/google/json_serializable.dart/compare/json_annotation-v4.4.0...json_annotation-v4.5.0)

---
updated-dependencies:
- dependency-name: json_annotation
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 18:32:33 +10:00
dependabot[bot]
bb8a84d549 Bump json_serializable in /experimental/web_dashboard (#1177)
Bumps [json_serializable](https://github.com/google/json_serializable.dart) from 6.1.6 to 6.2.0.
- [Release notes](https://github.com/google/json_serializable.dart/releases)
- [Commits](https://github.com/google/json_serializable.dart/compare/json_serializable-v6.1.6...json_serializable-v6.2.0)

---
updated-dependencies:
- dependency-name: json_serializable
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 18:30:56 +10:00
dependabot[bot]
cad1fccb79 Bump firebase_auth from 3.3.15 to 3.3.16 in /experimental/web_dashboard (#1172)
Bumps [firebase_auth](https://github.com/FirebaseExtended/flutterfire) from 3.3.15 to 3.3.16.
- [Release notes](https://github.com/FirebaseExtended/flutterfire/releases)
- [Changelog](https://github.com/firebase/flutterfire/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FirebaseExtended/flutterfire/compare/firebase_auth-v3.3.15...firebase_auth-v3.3.16)

---
updated-dependencies:
- dependency-name: firebase_auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 18:26:40 +10:00
dependabot[bot]
e37d8a8a96 Bump firebase_core from 1.14.1 to 1.15.0 in /experimental/web_dashboard (#1124) 2022-04-22 20:38:35 +10:00
dependabot[bot]
bf07b5b13a Bump cloud_firestore in /experimental/web_dashboard (#1126) 2022-04-22 20:35:11 +10:00
dependabot[bot]
71d9fa73e7 Bump firebase_auth from 3.3.14 to 3.3.15 in /experimental/web_dashboard (#1128) 2022-04-22 20:34:10 +10:00
Brett Morgan
a481c264cd Remove git:// url, update deps, fix destop_photo_search (#1052) 2022-03-19 08:37:04 +10:00
Brett Morgan
ddd618f92e Update charts_flutter to 0.12.0 (#951) 2021-11-19 08:21:53 -08: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
Andrew Brogdon
4cac0e6661 Lands beta branch into master for 2.5 (#895) 2021-09-08 17:35:05 -07: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
Brett Morgan
d88f131982 flutter pub upgrade (#524) 2020-08-17 20:40:46 +10: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
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