Skip to content

Commit

Permalink
Flutter 1.17 updates (flutter#432)
Browse files Browse the repository at this point in the history
* Material text theme updates & flutter pub upgrade (flutter#411)

* Beta channel updates (flutter#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 (flutter#416)

* use headline6 instead of title

* fix another title -> headline6

Co-authored-by: Brett Morgan <[email protected]>
Co-authored-by: Andrew Brogdon <[email protected]>
  • Loading branch information
3 people authored May 6, 2020
1 parent 31f6eff commit 14b9a8c
Show file tree
Hide file tree
Showing 45 changed files with 391 additions and 374 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ notifications:
branches:
only:
- master
- beta

before_install:
# Decrypt credentials for Firebase Test Lab service account. This key will only
Expand Down
4 changes: 2 additions & 2 deletions add_to_app/flutter_module/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ class Contents extends StatelessWidget {
Text(
'Window is ${mediaInfo.size.width.toStringAsFixed(1)} x '
'${mediaInfo.size.height.toStringAsFixed(1)}',
style: Theme.of(context).textTheme.headline,
style: Theme.of(context).textTheme.headline5,
),
SizedBox(height: 16),
Consumer<CounterModel>(
builder: (context, model, child) {
return Text(
'Taps: ${model.count}',
style: Theme.of(context).textTheme.headline,
style: Theme.of(context).textTheme.headline5,
);
},
),
Expand Down
55 changes: 31 additions & 24 deletions add_to_app/flutter_module/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,42 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.11"
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.2"
version: "1.6.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
version: "2.4.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
version: "1.14.12"
convert:
dependency: transitive
description:
Expand All @@ -56,14 +56,14 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "2.1.4"
espresso:
dependency: "direct dev"
description:
name: espresso
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+2"
version: "0.0.1+4"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -97,14 +97,14 @@ packages:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.12"
intl:
dependency: transitive
description:
name: intl
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.0"
version: "0.16.1"
json_rpc_2:
dependency: transitive
description:
Expand Down Expand Up @@ -140,13 +140,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
petitparser:
dependency: transitive
description:
Expand Down Expand Up @@ -174,21 +167,21 @@ packages:
name: provider
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.2"
version: "4.0.5"
pub_semver:
dependency: transitive
description:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.2"
version: "1.4.4"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "2.1.3"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -200,7 +193,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.7.0"
stack_trace:
dependency: transitive
description:
Expand All @@ -222,6 +215,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
sync_http:
dependency: transitive
description:
name: sync_http
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
term_glyph:
dependency: transitive
description:
Expand All @@ -235,7 +235,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.11"
version: "0.2.15"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -264,13 +264,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
webdriver:
dependency: transitive
description:
name: webdriver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
version: "3.6.1"
sdks:
dart: ">=2.6.0-dev <3.0.0"
dart: ">=2.6.0 <3.0.0"
flutter: ">=1.12.1 <2.0.0"
4 changes: 2 additions & 2 deletions add_to_app/flutter_module_using_plugin/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ class Contents extends StatelessWidget {
Text(
'Window is ${mediaInfo.size.width.toStringAsFixed(1)} x '
'${mediaInfo.size.height.toStringAsFixed(1)}',
style: Theme.of(context).textTheme.headline,
style: Theme.of(context).textTheme.headline5,
),
SizedBox(height: 16),
Consumer<CounterModel>(
builder: (context, model, child) {
return Text(
'Taps: ${model.count}',
style: Theme.of(context).textTheme.headline,
style: Theme.of(context).textTheme.headline5,
);
},
),
Expand Down
43 changes: 18 additions & 25 deletions add_to_app/flutter_module_using_plugin/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,42 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.11"
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.2"
version: "1.6.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
version: "2.4.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
version: "1.14.12"
convert:
dependency: transitive
description:
Expand All @@ -56,7 +56,7 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "2.1.4"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -78,7 +78,7 @@ packages:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.12"
matcher:
dependency: transitive
description:
Expand All @@ -100,13 +100,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
petitparser:
dependency: transitive
description:
Expand All @@ -120,7 +113,7 @@ packages:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.0.2"
provider:
dependency: "direct main"
description:
Expand All @@ -134,7 +127,7 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "2.1.3"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -146,7 +139,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.7.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -181,7 +174,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.11"
version: "0.2.15"
typed_data:
dependency: transitive
description:
Expand All @@ -195,28 +188,28 @@ packages:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "5.4.1"
version: "5.4.2"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+2"
version: "0.0.1+4"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "1.0.6"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0+2"
version: "0.1.1+1"
vector_math:
dependency: transitive
description:
Expand All @@ -230,7 +223,7 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
version: "3.6.1"
sdks:
dart: ">=2.6.0-dev <3.0.0"
dart: ">=2.6.0 <3.0.0"
flutter: ">=1.12.8 <2.0.0"
2 changes: 1 addition & 1 deletion animations/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class AnimationSamples extends StatelessWidget {

class HomePage extends StatelessWidget {
Widget build(BuildContext context) {
final headerStyle = Theme.of(context).textTheme.title;
final headerStyle = Theme.of(context).textTheme.headline6;
return Scaffold(
appBar: AppBar(
title: Text('Animation Samples'),
Expand Down
2 changes: 1 addition & 1 deletion animations/lib/src/basics/02_page_route_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class _Page2 extends StatelessWidget {
return Scaffold(
appBar: AppBar(),
body: Center(
child: Text('Page 2!', style: Theme.of(context).textTheme.display1),
child: Text('Page 2!', style: Theme.of(context).textTheme.headline4),
),
);
}
Expand Down
Loading

0 comments on commit 14b9a8c

Please sign in to comment.