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

396 Commits

Author SHA1 Message Date
John Ryan
a94342d199 Fix filipino cuisine (#468)
* update filipino cuisine to match hosted JSON

https://filipino-cuisine-app.firebaseio.com/data.json must have
changed recently

* use local version of data.json in filipino_cuisine app

* remove unknown JSON keys
2020-06-12 09:19:23 -07:00
Brett Morgan
dad1de0a3d Adding testing_sample as a tested branch (#470)
Setting up a long lived branch for development of a testing sample.
2020-06-11 21:16:49 -07:00
查理大叔
30ee7202e2 Code of other files depends on headline1 (#466)
Code of other files depends on `headline1`, but there's only `headline2` defined in the **theme.dart** file.

This was a regression introduced with #432.
2020-06-09 21:35:10 -07:00
Brett Morgan
47b8610ed9 Use flutter_simple_treeview (#461) 2020-06-09 15:58:00 +10:00
xster
2c6f2ddb1f change link in add-to-app module readme (#464) 2020-06-08 15:49:59 -07:00
Ayush Bherwani
491c3f58aa [animations] adds test for CarouselDemo (#443) 2020-06-05 18:15:59 -07:00
Ayush Bherwani
d500d15c0f updates link for Flutter Gallery and Shrine (#459) 2020-06-04 14:55:45 -07:00
Ayush Bherwani
acf700c642 Initial Commit for PlaformChannel Sample App (#453) 2020-06-04 14:54:52 -07:00
John Ryan
8fbe1d6366 Run full sample index build when running peanut (#456)
The previous `build-release` task doesn't generate the index file.
2020-06-02 15:17:56 -07:00
Brett Morgan
84ba9feba2 Linking to a analysis_options.yaml that is present (#450)
fixes: https://github.com/flutter/samples/issues/449
2020-06-02 14:35:59 +10:00
mariamhas
c537c3b818 Add dice sample (#454)
* add dice sample image

* Update samples.yaml
2020-06-01 16:31:41 -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
Ayush Bherwani
46a3f2dd09 fixes broken link to CI script (#452) 2020-06-01 22:37: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
Abdullah Deshmukh
b518c322cc [animations] Add widget tests for card_swipe (#442) 2020-05-22 21:34:44 +10:00
Will Larche
ae287da326 Revert "[Material] Material theme builder (#313)" (#446)
This reverts commit 9a33d45766.
2020-05-21 14:42:23 -07:00
Will Larche
9a33d45766 [Material] Material theme builder (#313)
* Initial version.

* Applied theming.

* Updated UI

- Updated ThemeData to baseline values

* Update readme

Update readme

* Update readme

* Update readme

* [INDEX] Adding a listing for this.

* [Material Theme Builder] PR feedback and updating for new text theme API.

* [Material Theme Builder] More PR feedback.

* [Material Theme Builder] Adding to Travis.

* [Material Theme Builder] Rebase conflicts.

* [Theme Generator] Adding 1 link to the readme.

Co-authored-by: yasmineevjen <yasmineevjen@users.noreply.github.com>
2020-05-21 12:56:42 -04:00
John Ryan
7e4cb0fb56 change slide_puzzle to a submodule (#441)
* change slide_puzzle to a submodule

* use HTTPS
2020-05-18 13:07:37 -07:00
Filip Hracek
1d8cfa11c5 Add the infinite_list sample (#440)
This PR adds a Flutter sample app that shows an implementation of the "infinite list" UX pattern. That is, a list is shown to the user as if it was continuous although it is internally paginated. This is a common feature of mobile apps, from shopping catalogs through search engines to social media clients.
2020-05-15 17:53:54 -07:00
Brett Morgan
baa1f976b2 Samples maintenance (#435) 2020-05-13 09:18:26 +10:00
Michael Goderbauer
941ebebfad [Veggie Seasons] Update dependencies on xcode project (#428) 2020-05-06 15:25:09 -07: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
Anthony
31f6eff4a6 Update samples.yaml (#430) 2020-05-05 14:36:41 -07:00
Pierre-Louis
27198ad733 Update Flutter Gallery link (#429) 2020-05-05 14:35:59 -07:00
Andrew Brogdon
c7f5030079 Moved two animation vignettes into misc. (#425) 2020-05-04 13:38:38 -07:00
John Ryan
9a464fad00 update slide_puzzle (#420)
* update slide_puzzle

* run createThumbnails before build-release grind task

* add license headers
2020-04-29 13:41:36 -07:00
Jaideep Prasad
ddf610d682 [provider_shopper] Added widget tests for login, catalog and cart screens (#400) 2020-04-27 17:45:50 -07:00
John Ryan
e6c7aaf8c6 Update README.md (#422) 2020-04-27 17:42:47 -07:00
Ayush Bherwani
b2f3ccfad2 [animations] adds widget test for expand card (#410) 2020-04-27 17:31:04 -07:00
John Ryan
ef0114c210 update slide_puzzle for beta channel (#419)
includes PR: https://github.com/kevmoo/slide_puzzle/pull/5
2020-04-23 09:33:43 -07:00
Ayush Kumar Shaw
ed284c78bd Added CurvedAnimation Sample (#385) 2020-04-22 22:08:12 -07:00
John Ryan
8763d754ad Add thumbnail images to VSI (#415)
* add thumbnail image generation

improves page load from 41.7 MB to 7.6 MB

* remove filesCreated set - thumbnails for each image are generated.

* set package:image version in pubspec

* Update grind.dart
2020-04-17 13:55:12 -07:00
John Ryan
5a5cc8a62f remove navigation rail, update adaptive scaffold (#404) 2020-04-07 09:12:25 -07:00
Govind Dixit
ff924ef6cb fix timeflow broken link (#407) 2020-04-02 17:03:39 -07:00
Aadarsh Patel
1c887b6d80 typo fix (#403) 2020-03-30 22:18:53 -07:00
Abdullah Deshmukh
d9c9b3a519 [VeggieSeasons] Fix dark mode problems (#395) 2020-03-30 21:55:00 -07:00
Brett Morgan
28742ddeaf Adding directives_ordering (#396) 2020-03-26 06:14:39 +11:00
Andrew Brogdon
3f3564606c Updating README to point to visual samples index (#386) 2020-03-24 11:33:42 -07:00
Abdullah Deshmukh
3a02748df2 [platform_design]Fix problems in dark mode (#377) 2020-03-19 10:39:40 -07:00
Ayush Bherwani
f8e3d391f3 Added more examples in animations (#341) 2020-03-18 16:49:18 -07:00
Aadarsh Patel
bc7a51ea6e Android subproject removed (#378)
* Android subproject removed

* Update .gitignore

* Update .gitignore
2020-03-18 16:05:28 -07:00
Jaideep Prasad
73ee9832a2 [animations] Added FadeTransition Demo (#375)
* [animations] Added FadeTransition Demo

* updated acc to reviews

* updated acc to reviews

Co-authored-by: John Ryan <ryjohn@google.com>
2020-03-17 16:08:15 -07:00
Jaideep Prasad
b1a4a24f64 [animations] new animation sample: Hero Animation Demo (#364) 2020-03-17 15:18:30 -07:00
John Ryan
a165fb98ad update samples_index UX (#371)
- Use Google Sans
- add brand colors
- adjust spacing on elements
- align MDC Chips to spec
- update type labels to spec
2020-03-16 10:03:24 -07:00
Andrew Brogdon
a72b6adfeb Adding issue request notice to contributor's guide (#374) 2020-03-16 09:29:36 -07:00
Andrew Brogdon
42c114dec2 Tweaking README file for old gallery (#373) 2020-03-13 14:52:07 -07:00
Anthony
29dfc8cdfd Remove gallery app and show its new location in the README (#358) 2020-03-13 14:40:16 -07:00
Andrew Brogdon
face0f564a Adds espresso testing for add_to_app/android_fullscreen (#323) 2020-03-12 20:12:24 -07:00
Jaideep Prasad
bff4d459f7 [platform_design] fix: Polished LogOut dialog (#367)
* fix: Polished LogOut dialog

* dart fmt
2020-03-11 11:14:34 -07:00
Andrew Brogdon
1289227832 Moving animated list sample (#366) 2020-03-10 16:33:23 -07:00