Skip to content

Commit 02259c3

Browse files
author
Chris Yang
authored
Fix ci error: deprecated api (flutter#2485)
1 parent 0fa7230 commit 02259c3

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

Diff for: packages/espresso/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.1+2
2+
3+
* Update te example app to avoid using deprecated api.
4+
15
## 0.0.1+1
26

37
* Updates to README to avoid unnecessary imports and warnings.

Diff for: packages/espresso/example/lib/main.dart

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class _MyHomePageState extends State<_MyHomePage> {
9494
children: <Widget>[
9595
Text(
9696
'Button tapped $_counter time${_counter == 1 ? '' : 's'}.',
97-
style: Theme.of(context).textTheme.display1,
9897
key: ValueKey('CountText'),
9998
),
10099
],

Diff for: packages/espresso/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: espresso
22
description: Java classes for testing Flutter apps using Espresso.
3-
version: 0.0.1+1
3+
version: 0.0.1+2
44
homepage: https://github.com/flutter/plugins/espresso
55

66
environment:

Diff for: packages/in_app_purchase/CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
## 0.3.0+2
2+
3+
* Update te example app to avoid using deprecated api.
4+
15
## 0.3.0+1
26

3-
* Fixing usage example. No functional changes.
7+
* Fixing usage example. No functional changes.
48

59
## 0.3.0
610

Diff for: packages/in_app_purchase/example/lib/main.dart

+3-6
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ class _MyAppState extends State<MyApp> {
213213
if (!_isAvailable) {
214214
return Card();
215215
}
216-
final ListTile productHeader = ListTile(
217-
title: Text('Products for Sale',
218-
style: Theme.of(context).textTheme.headline));
216+
final ListTile productHeader = ListTile(title: Text('Products for Sale'));
219217
List<ListTile> productList = <ListTile>[];
220218
if (_notFoundIds.isNotEmpty) {
221219
productList.add(ListTile(
@@ -284,9 +282,8 @@ class _MyAppState extends State<MyApp> {
284282
if (!_isAvailable || _notFoundIds.contains(_kConsumableId)) {
285283
return Card();
286284
}
287-
final ListTile consumableHeader = ListTile(
288-
title: Text('Purchased consumables',
289-
style: Theme.of(context).textTheme.headline));
285+
final ListTile consumableHeader =
286+
ListTile(title: Text('Purchased consumables'));
290287
final List<Widget> tokens = _consumables.map((String id) {
291288
return GridTile(
292289
child: IconButton(

Diff for: packages/in_app_purchase/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: in_app_purchase
22
description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase
4-
version: 0.3.0+1
4+
version: 0.3.0+2
55

66

77
dependencies:

0 commit comments

Comments
 (0)