Skip to content

Commit a7dd769

Browse files
authored
Update obsolete button refs in plugin examples (flutter#3395)
1 parent 1b7afc5 commit a7dd769

File tree

72 files changed

+296
-205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+296
-205
lines changed

packages/android_alarm_manager/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.5+20
2+
3+
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.
4+
15
## 0.4.5+19
26

37
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))

packages/android_alarm_manager/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class _AlarmHomePageState extends State<_AlarmHomePage> {
131131
),
132132
],
133133
),
134-
RaisedButton(
134+
ElevatedButton(
135135
child: Text(
136136
'Schedule OneShot Alarm',
137137
),

packages/android_alarm_manager/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for accessing the Android AlarmManager service, and
44
# 0.4.y+z is compatible with 1.0.0, if you land a breaking change bump
55
# the version to 2.0.0.
66
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7-
version: 0.4.5+19
7+
version: 0.4.5+20
88
homepage: https://github.com/flutter/plugins/tree/master/packages/android_alarm_manager
99

1010
dependencies:

packages/android_intent/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.0-nullsafety.2
2+
3+
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.
4+
15
## 2.0.0-nullsafety.1
26

37
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))

packages/android_intent/example/lib/main.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ class MyHomePage extends StatelessWidget {
5959
child: Column(
6060
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
6161
children: <Widget>[
62-
RaisedButton(
62+
ElevatedButton(
6363
child: const Text(
6464
'Tap here to set an alarm\non weekdays at 9:30pm.'),
6565
onPressed: _createAlarm,
6666
),
67-
RaisedButton(
67+
ElevatedButton(
6868
child: const Text('Tap here to test explicit intents.'),
6969
onPressed: () => _openExplicitIntentsView(context)),
7070
],
@@ -166,40 +166,40 @@ class ExplicitIntentsWidget extends StatelessWidget {
166166
child: Column(
167167
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
168168
children: <Widget>[
169-
RaisedButton(
169+
ElevatedButton(
170170
child: const Text(
171171
'Tap here to display panorama\nimagery in Google Street View.'),
172172
onPressed: _openGoogleMapsStreetView,
173173
),
174-
RaisedButton(
174+
ElevatedButton(
175175
child: const Text('Tap here to display\na map in Google Maps.'),
176176
onPressed: _displayMapInGoogleMaps,
177177
),
178-
RaisedButton(
178+
ElevatedButton(
179179
child: const Text(
180180
'Tap here to launch turn-by-turn\nnavigation in Google Maps.'),
181181
onPressed: _launchTurnByTurnNavigationInGoogleMaps,
182182
),
183-
RaisedButton(
183+
ElevatedButton(
184184
child: const Text('Tap here to open link in Google Chrome.'),
185185
onPressed: _openLinkInGoogleChrome,
186186
),
187-
RaisedButton(
187+
ElevatedButton(
188188
child: const Text('Tap here to start activity in new task.'),
189189
onPressed: _startActivityInNewTask,
190190
),
191-
RaisedButton(
191+
ElevatedButton(
192192
child: const Text(
193193
'Tap here to test explicit intent fallback to implicit.'),
194194
onPressed: _testExplicitIntentFallback,
195195
),
196-
RaisedButton(
196+
ElevatedButton(
197197
child: const Text(
198198
'Tap here to open Location Settings Configuration',
199199
),
200200
onPressed: _openLocationSettingsConfiguration,
201201
),
202-
RaisedButton(
202+
ElevatedButton(
203203
child: const Text(
204204
'Tap here to open Application Details',
205205
),

packages/android_intent/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: android_intent
22
description: Flutter plugin for launching Android Intents. Not supported on iOS.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/android_intent
4-
version: 2.0.0-nullsafety.1
4+
version: 2.0.0-nullsafety.2
55

66
flutter:
77
plugin:

packages/battery/battery/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.11
2+
3+
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.
4+
15
## 1.0.10
26

37
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))

packages/battery/battery/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class _MyHomePageState extends State<MyHomePage> {
7171
builder: (_) => AlertDialog(
7272
content: Text('Battery: $batteryLevel%'),
7373
actions: <Widget>[
74-
FlatButton(
74+
TextButton(
7575
child: const Text('OK'),
7676
onPressed: () {
7777
Navigator.pop(context);

packages/battery/battery/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: battery
22
description: Flutter plugin for accessing information about the battery state
33
(full, charging, discharging) on Android and iOS.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/battery/battery
5-
version: 1.0.10
5+
version: 1.0.11
66

77
flutter:
88
plugin:

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.4+5
2+
3+
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.
4+
15
## 0.6.4+4
26

37
* Set camera auto focus enabled by default.

0 commit comments

Comments
 (0)