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

52 Commits

Author SHA1 Message Date
Brett Morgan
a41cbf948b Add windows support to desktop photo search. (#548) 2020-09-22 10:03:11 +10:00
Ayush Bherwani
358485d7fa [federated_plugin] adds support for Windows (#533) 2020-09-17 16:18:20 -07:00
Brett Morgan
9b731e8556 flutter pub upgrade (#547) 2020-09-16 08:36:32 +10:00
Ayush Bherwani
60691d00c0 [federated_plugin_sample] modify the sample to expose battery API instead of geolocation API (#526) 2020-08-24 23:22:42 -07:00
Andrew Brogdon
0362a64ec5 Removing add_to_app redirect file (#527) 2020-08-17 12:04:32 -07:00
Brett Morgan
d88f131982 flutter pub upgrade (#524) 2020-08-17 20:40:46 +10:00
Ayush Bherwani
c5c2da9a4b [federated_plugin] adds web implementation of federated_plugin (#507) 2020-08-04 22:38:20 -07:00
Ayush Bherwani
6d909874db [federated_plugin] adds platform interface implementation and plugin implementation for Android (#503) 2020-07-28 20:47:36 -07: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
Ayush Bherwani
32d04ba635 [federated_plugin_sample] Initial commit (#497) 2020-07-20 17:55:55 -07:00
Brett Morgan
9140559040 Update linux compilation generated files (#489) 2020-07-09 08:03:21 +10:00
Brett Morgan
11cbd8b637 Update deps (#488) 2020-07-08 07:24:18 +10:00
Brett Morgan
5a83eb300e Adding linux support (#482) 2020-06-24 07:17:36 +10:00
John Ryan
af5be70f34 add form_app (#463)
* add form_app

* revert unrelated changes

* use links in README

* remove unnecessary type annotation

* Remove GlobalKey for sign_in_http sample

* reword comment

* run package:copywriter

* use relative import

* fix quotes

* Add punctuation

* make sure setState() is used in form_widgets sample

* avoid first person pronoun

* store date state in parent widget in form_widgets.dart
2020-06-12 12:38:46 -07:00
Brett Morgan
47b8610ed9 Use flutter_simple_treeview (#461) 2020-06-09 15:58:00 +10: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
Brett Morgan
28742ddeaf Adding directives_ordering (#396) 2020-03-26 06:14:39 +11: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
Andrew Brogdon
efab5b0644 Removing index from experimental README (#362) 2020-03-09 14:42:37 -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
sanni prasad
0a88d4519e Update cupertino_icons: from 0.1.2 to 0.1.3 (#325) 2020-02-12 10:28:00 -08:00
Brett Morgan
13125bc435 Scripting flutter pub upgrade (#242) 2020-01-16 10:06:33 +10:00
Brett Morgan
676698aa83 flutter pub upgrade (#241) 2020-01-15 04:31:25 +10:00
Brett Morgan
7b90d1cefc desktop photo search migrate to dev.flutter (#229) 2020-01-14 06:42:47 +10:00
mirock
7c481b2d11 README:fix typo (#189) 2019-12-17 08:52:53 +11:00
Andrew Brogdon
66efe3b5ce Adding redirect README for add_to_app (#182) 2019-12-12 17:31:35 -05:00
Andrew Brogdon
400f305ecd Graduating add-to-app (#180) 2019-12-12 10:45:11 -05:00
Brett Morgan
428041b253 Drop build.yaml and simplify url_launcher usage (#177) 2019-12-11 08:09:29 +11:00
Brett Morgan
f07b4a90d5 Desktop photo search (#174) 2019-12-11 07:22:42 +11:00
Andrew Brogdon
8c27a25d50 Modifying readmes (#175) 2019-12-09 14:54:26 -05:00
Andrew Brogdon
9880ff0679 Adds new "prebuilt framework" add-to-app sample for iOS (#171) 2019-12-09 08:07:16 -08:00
Gonçalo Palma
e640c3182c Add CocoaPods installation to the add-to-app README (#162) 2019-11-19 09:49:25 -08:00
Gonçalo Palma
49ae463045 Removes plugin registration from add-to-app's Android "using plugin" sample 2019-11-19 09:44:11 -08:00
Andrew Brogdon
8155d8a777 Tidying up add-to-app samples (#160) 2019-11-05 09:21:39 -08:00
xster
57759009aa Some kotlin cosmetic tweaks (#157) 2019-10-29 13:40:37 -07:00
Andrew Brogdon
2af51a8222 Adds android_using_prebuilt_module to add-to-app samples (#154) 2019-10-24 15:09:10 -07:00
Andrew Brogdon
bfdc21841c Add-to-app samples using plugin (#152) 2019-10-16 15:53:29 -07:00
Andrew Brogdon
64cfc2bdc7 Updated to latest embedding (#153) 2019-10-16 09:09:09 -07:00
Andrew Brogdon
947042d8df Adds data transfer to Add2App samples, using caching on Android (#146) 2019-10-11 15:17:16 -07:00
Andrew Brogdon
22ca7f462b Adds new flutter module, reconfigures Android/iOS sample (#144) 2019-09-19 11:12:58 -07:00
xster
fde7a0aefe small random notes (#137) 2019-09-10 15:51:28 -07:00
Andrew Brogdon
16fa475ff8 Updates for 1.9 (#139) 2019-09-10 08:47:34 -07:00
Jenn Magder
f955976837 Remove bitcode=NO from add-to-app flows (#140) 2019-09-09 15:57:40 -07:00
Andrew Brogdon
6cda477f20 Adds an Android app to the add2app experimental sample (#133) 2019-09-01 12:24:00 -07:00
John Ryan
f28c525127 Update add_to_app README (#129)
* Update add_to_app README

* simplify README prerequisites

* Cocoapods -> CocoaPods
2019-08-14 16:31:53 -07:00