From 3ae4233c3108c53d4cb04ee0d293a651e91e8f70 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Wed, 6 Jan 2021 16:21:18 -0800 Subject: [PATCH 1/8] Update obsolete button refs in plugin examples --- .../example/lib/main.dart | 2 +- packages/android_intent/example/lib/main.dart | 20 ++++++------- .../battery/battery/example/lib/main.dart | 2 +- packages/camera/camera/example/lib/main.dart | 22 +++++++------- .../example/lib/get_directory_page.dart | 4 +-- .../file_selector/example/lib/home_page.dart | 10 +++---- .../example/lib/open_image_page.dart | 4 +-- .../lib/open_multiple_images_page.dart | 4 +-- .../example/lib/open_text_page.dart | 4 +-- .../example/lib/save_text_page.dart | 2 +- .../example/lib/animate_camera.dart | 20 ++++++------- .../example/lib/map_coordinates.dart | 2 +- .../example/lib/map_ui.dart | 30 +++++++++---------- .../example/lib/move_camera.dart | 20 ++++++------- .../example/lib/padding.dart | 4 +-- .../example/lib/place_circle.dart | 12 ++++---- .../example/lib/place_marker.dart | 28 ++++++++--------- .../example/lib/place_polygon.dart | 14 ++++----- .../example/lib/place_polyline.dart | 20 ++++++------- .../example/lib/snapshot.dart | 2 +- .../example/lib/main.dart | 6 ++-- .../google_sign_in/example/lib/main.dart | 6 ++-- .../image_picker/example/lib/main.dart | 4 +-- .../in_app_purchase/example/lib/main.dart | 8 +++-- packages/local_auth/example/lib/main.dart | 6 ++-- .../path_provider/example/lib/main.dart | 14 ++++----- .../path_provider_macos/example/lib/main.dart | 14 ++++----- packages/share/example/lib/main.dart | 8 ++--- .../url_launcher/example/lib/main.dart | 14 ++++----- .../test/url_launcher_example_test.dart | 2 +- .../url_launcher/lib/src/link.dart | 4 +-- .../url_launcher_linux/example/lib/main.dart | 12 ++++---- .../url_launcher_macos/example/lib/main.dart | 12 ++++---- .../example/lib/main.dart | 2 +- .../video_player/example/lib/main.dart | 4 +-- 35 files changed, 173 insertions(+), 169 deletions(-) diff --git a/packages/android_alarm_manager/example/lib/main.dart b/packages/android_alarm_manager/example/lib/main.dart index b4d907c127da..ac27fec2e4c6 100644 --- a/packages/android_alarm_manager/example/lib/main.dart +++ b/packages/android_alarm_manager/example/lib/main.dart @@ -131,7 +131,7 @@ class _AlarmHomePageState extends State<_AlarmHomePage> { ), ], ), - RaisedButton( + ElevatedButton( child: Text( 'Schedule OneShot Alarm', ), diff --git a/packages/android_intent/example/lib/main.dart b/packages/android_intent/example/lib/main.dart index 45de9632e975..4fd2440285f3 100644 --- a/packages/android_intent/example/lib/main.dart +++ b/packages/android_intent/example/lib/main.dart @@ -59,12 +59,12 @@ class MyHomePage extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - RaisedButton( + ElevatedButton( child: const Text( 'Tap here to set an alarm\non weekdays at 9:30pm.'), onPressed: _createAlarm, ), - RaisedButton( + ElevatedButton( child: const Text('Tap here to test explicit intents.'), onPressed: () => _openExplicitIntentsView(context)), ], @@ -166,40 +166,40 @@ class ExplicitIntentsWidget extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - RaisedButton( + ElevatedButton( child: const Text( 'Tap here to display panorama\nimagery in Google Street View.'), onPressed: _openGoogleMapsStreetView, ), - RaisedButton( + ElevatedButton( child: const Text('Tap here to display\na map in Google Maps.'), onPressed: _displayMapInGoogleMaps, ), - RaisedButton( + ElevatedButton( child: const Text( 'Tap here to launch turn-by-turn\nnavigation in Google Maps.'), onPressed: _launchTurnByTurnNavigationInGoogleMaps, ), - RaisedButton( + ElevatedButton( child: const Text('Tap here to open link in Google Chrome.'), onPressed: _openLinkInGoogleChrome, ), - RaisedButton( + ElevatedButton( child: const Text('Tap here to start activity in new task.'), onPressed: _startActivityInNewTask, ), - RaisedButton( + ElevatedButton( child: const Text( 'Tap here to test explicit intent fallback to implicit.'), onPressed: _testExplicitIntentFallback, ), - RaisedButton( + ElevatedButton( child: const Text( 'Tap here to open Location Settings Configuration', ), onPressed: _openLocationSettingsConfiguration, ), - RaisedButton( + ElevatedButton( child: const Text( 'Tap here to open Application Details', ), diff --git a/packages/battery/battery/example/lib/main.dart b/packages/battery/battery/example/lib/main.dart index 1c1dfcf252b6..c84f5eec519b 100644 --- a/packages/battery/battery/example/lib/main.dart +++ b/packages/battery/battery/example/lib/main.dart @@ -71,7 +71,7 @@ class _MyHomePageState extends State { builder: (_) => AlertDialog( content: Text('Battery: $batteryLevel%'), actions: [ - FlatButton( + TextButton( child: const Text('OK'), onPressed: () { Navigator.pop(context); diff --git a/packages/camera/camera/example/lib/main.dart b/packages/camera/camera/example/lib/main.dart index c4fa1c5ed01e..1f3b945aaf3d 100644 --- a/packages/camera/camera/example/lib/main.dart +++ b/packages/camera/camera/example/lib/main.dart @@ -327,12 +327,13 @@ class _CameraExampleHomeState extends State mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisSize: MainAxisSize.max, children: [ - FlatButton( + TextButton( child: Text('AUTO'), - textColor: - controller?.value?.exposureMode == ExposureMode.auto - ? Colors.orange - : Colors.blue, + style: TextButton.styleFrom( + primary: controller?.value?.exposureMode == ExposureMode.auto + ? Colors.orange + : Colors.blue, + ), onPressed: controller != null ? () => onSetExposureModeButtonPressed(ExposureMode.auto) @@ -342,12 +343,13 @@ class _CameraExampleHomeState extends State showInSnackBar('Resetting exposure point'); }, ), - FlatButton( + TextButton( child: Text('LOCKED'), - textColor: - controller?.value?.exposureMode == ExposureMode.locked - ? Colors.orange - : Colors.blue, + style: TextButton.styleFrom( + primary: controller?.value?.exposureMode == ExposureMode.auto + ? Colors.orange + : Colors.blue, + ), onPressed: controller != null ? () => onSetExposureModeButtonPressed(ExposureMode.locked) diff --git a/packages/file_selector/file_selector/example/lib/get_directory_page.dart b/packages/file_selector/file_selector/example/lib/get_directory_page.dart index 2afc58f246a4..17ac77c154b9 100644 --- a/packages/file_selector/file_selector/example/lib/get_directory_page.dart +++ b/packages/file_selector/file_selector/example/lib/get_directory_page.dart @@ -24,7 +24,7 @@ class GetDirectoryPage extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Press to ask user to choose a directory'), @@ -55,7 +55,7 @@ class TextDisplay extends StatelessWidget { ), ), actions: [ - FlatButton( + TextButton( child: const Text('Close'), onPressed: () => Navigator.pop(context), ), diff --git a/packages/file_selector/file_selector/example/lib/home_page.dart b/packages/file_selector/file_selector/example/lib/home_page.dart index c37d90170f6e..be3bdce92995 100644 --- a/packages/file_selector/file_selector/example/lib/home_page.dart +++ b/packages/file_selector/file_selector/example/lib/home_page.dart @@ -12,35 +12,35 @@ class HomePage extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Open a text file'), onPressed: () => Navigator.pushNamed(context, '/open/text'), ), SizedBox(height: 10), - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Open an image'), onPressed: () => Navigator.pushNamed(context, '/open/image'), ), SizedBox(height: 10), - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Open multiple images'), onPressed: () => Navigator.pushNamed(context, '/open/images'), ), SizedBox(height: 10), - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Save a file'), onPressed: () => Navigator.pushNamed(context, '/save/text'), ), SizedBox(height: 10), - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Open a get directory dialog'), diff --git a/packages/file_selector/file_selector/example/lib/open_image_page.dart b/packages/file_selector/file_selector/example/lib/open_image_page.dart index 2821635fb30b..631e7254e894 100644 --- a/packages/file_selector/file_selector/example/lib/open_image_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_image_page.dart @@ -31,7 +31,7 @@ class OpenImagePage extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Press to open an image file(png, jpg)'), @@ -63,7 +63,7 @@ class ImageDisplay extends StatelessWidget { // while on other platforms it is a system path. content: kIsWeb ? Image.network(filePath) : Image.file(File(filePath)), actions: [ - FlatButton( + TextButton( child: const Text('Close'), onPressed: () { Navigator.pop(context); diff --git a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart index 7a27a0c0715f..c06b62200c5d 100644 --- a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart @@ -34,7 +34,7 @@ class OpenMultipleImagesPage extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Press to open multiple images (png, jpg)'), @@ -74,7 +74,7 @@ class MultipleImagesDisplay extends StatelessWidget { ), ), actions: [ - FlatButton( + TextButton( child: const Text('Close'), onPressed: () { Navigator.pop(context); diff --git a/packages/file_selector/file_selector/example/lib/open_text_page.dart b/packages/file_selector/file_selector/example/lib/open_text_page.dart index 4cb3064046fd..8e8df84c2840 100644 --- a/packages/file_selector/file_selector/example/lib/open_text_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_text_page.dart @@ -28,7 +28,7 @@ class OpenTextPage extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Press to open a text file (json, txt)'), @@ -62,7 +62,7 @@ class TextDisplay extends StatelessWidget { ), ), actions: [ - FlatButton( + TextButton( child: const Text('Close'), onPressed: () => Navigator.pop(context), ), diff --git a/packages/file_selector/file_selector/example/lib/save_text_page.dart b/packages/file_selector/file_selector/example/lib/save_text_page.dart index b70231f5a410..05644092c117 100644 --- a/packages/file_selector/file_selector/example/lib/save_text_page.dart +++ b/packages/file_selector/file_selector/example/lib/save_text_page.dart @@ -51,7 +51,7 @@ class SaveTextPage extends StatelessWidget { ), ), SizedBox(height: 10), - RaisedButton( + ElevatedButton( color: Colors.blue, textColor: Colors.white, child: Text('Press to save a text file'), diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart index 37c79d302733..ae5e9f6cee3a 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart @@ -54,7 +54,7 @@ class AnimateCameraState extends State { children: [ Column( children: [ - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.newCameraPosition( @@ -69,7 +69,7 @@ class AnimateCameraState extends State { }, child: const Text('newCameraPosition'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.newLatLng( @@ -79,7 +79,7 @@ class AnimateCameraState extends State { }, child: const Text('newLatLng'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.newLatLngBounds( @@ -93,7 +93,7 @@ class AnimateCameraState extends State { }, child: const Text('newLatLngBounds'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.newLatLngZoom( @@ -104,7 +104,7 @@ class AnimateCameraState extends State { }, child: const Text('newLatLngZoom'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.scrollBy(150.0, -225.0), @@ -116,7 +116,7 @@ class AnimateCameraState extends State { ), Column( children: [ - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.zoomBy( @@ -127,7 +127,7 @@ class AnimateCameraState extends State { }, child: const Text('zoomBy with focus'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.zoomBy(-0.5), @@ -135,7 +135,7 @@ class AnimateCameraState extends State { }, child: const Text('zoomBy'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.zoomIn(), @@ -143,7 +143,7 @@ class AnimateCameraState extends State { }, child: const Text('zoomIn'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.zoomOut(), @@ -151,7 +151,7 @@ class AnimateCameraState extends State { }, child: const Text('zoomOut'), ), - FlatButton( + TextButton( onPressed: () { mapController.animateCamera( CameraUpdate.zoomTo(16.0), diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart index efdbe016f7c4..f194f8cb3f3b 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart @@ -83,7 +83,7 @@ class _MapCoordinatesBodyState extends State<_MapCoordinatesBody> { Widget _getVisibleRegionButton() { return Padding( padding: const EdgeInsets.all(8.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Visible Region Bounds'), onPressed: () async { final LatLngBounds visibleRegion = diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart index f117c3a48b22..61a62ac0cf6d 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart @@ -70,7 +70,7 @@ class MapUiBodyState extends State { } Widget _compassToggler() { - return FlatButton( + return TextButton( child: Text('${_compassEnabled ? 'disable' : 'enable'} compass'), onPressed: () { setState(() { @@ -81,7 +81,7 @@ class MapUiBodyState extends State { } Widget _mapToolbarToggler() { - return FlatButton( + return TextButton( child: Text('${_mapToolbarEnabled ? 'disable' : 'enable'} map toolbar'), onPressed: () { setState(() { @@ -92,7 +92,7 @@ class MapUiBodyState extends State { } Widget _latLngBoundsToggler() { - return FlatButton( + return TextButton( child: Text( _cameraTargetBounds.bounds == null ? 'bound camera target' @@ -109,7 +109,7 @@ class MapUiBodyState extends State { } Widget _zoomBoundsToggler() { - return FlatButton( + return TextButton( child: Text(_minMaxZoomPreference.minZoom == null ? 'bound zoom' : 'release zoom'), @@ -126,7 +126,7 @@ class MapUiBodyState extends State { Widget _mapTypeCycler() { final MapType nextType = MapType.values[(_mapType.index + 1) % MapType.values.length]; - return FlatButton( + return TextButton( child: Text('change map type to $nextType'), onPressed: () { setState(() { @@ -137,7 +137,7 @@ class MapUiBodyState extends State { } Widget _rotateToggler() { - return FlatButton( + return TextButton( child: Text('${_rotateGesturesEnabled ? 'disable' : 'enable'} rotate'), onPressed: () { setState(() { @@ -148,7 +148,7 @@ class MapUiBodyState extends State { } Widget _scrollToggler() { - return FlatButton( + return TextButton( child: Text('${_scrollGesturesEnabled ? 'disable' : 'enable'} scroll'), onPressed: () { setState(() { @@ -159,7 +159,7 @@ class MapUiBodyState extends State { } Widget _tiltToggler() { - return FlatButton( + return TextButton( child: Text('${_tiltGesturesEnabled ? 'disable' : 'enable'} tilt'), onPressed: () { setState(() { @@ -170,7 +170,7 @@ class MapUiBodyState extends State { } Widget _zoomToggler() { - return FlatButton( + return TextButton( child: Text('${_zoomGesturesEnabled ? 'disable' : 'enable'} zoom'), onPressed: () { setState(() { @@ -181,7 +181,7 @@ class MapUiBodyState extends State { } Widget _zoomControlsToggler() { - return FlatButton( + return TextButton( child: Text('${_zoomControlsEnabled ? 'disable' : 'enable'} zoom controls'), onPressed: () { @@ -193,7 +193,7 @@ class MapUiBodyState extends State { } Widget _indoorViewToggler() { - return FlatButton( + return TextButton( child: Text('${_indoorViewEnabled ? 'disable' : 'enable'} indoor'), onPressed: () { setState(() { @@ -204,7 +204,7 @@ class MapUiBodyState extends State { } Widget _myLocationToggler() { - return FlatButton( + return TextButton( child: Text( '${_myLocationEnabled ? 'disable' : 'enable'} my location marker'), onPressed: () { @@ -216,7 +216,7 @@ class MapUiBodyState extends State { } Widget _myLocationButtonToggler() { - return FlatButton( + return TextButton( child: Text( '${_myLocationButtonEnabled ? 'disable' : 'enable'} my location button'), onPressed: () { @@ -228,7 +228,7 @@ class MapUiBodyState extends State { } Widget _myTrafficToggler() { - return FlatButton( + return TextButton( child: Text('${_myTrafficEnabled ? 'disable' : 'enable'} my traffic'), onPressed: () { setState(() { @@ -253,7 +253,7 @@ class MapUiBodyState extends State { if (!_isMapCreated) { return null; } - return FlatButton( + return TextButton( child: Text('${_nightMode ? 'disable' : 'enable'} night mode'), onPressed: () { if (_nightMode) { diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart index 514a315e03db..262d362d8c3e 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart @@ -53,7 +53,7 @@ class MoveCameraState extends State { children: [ Column( children: [ - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.newCameraPosition( @@ -68,7 +68,7 @@ class MoveCameraState extends State { }, child: const Text('newCameraPosition'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.newLatLng( @@ -78,7 +78,7 @@ class MoveCameraState extends State { }, child: const Text('newLatLng'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.newLatLngBounds( @@ -92,7 +92,7 @@ class MoveCameraState extends State { }, child: const Text('newLatLngBounds'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.newLatLngZoom( @@ -103,7 +103,7 @@ class MoveCameraState extends State { }, child: const Text('newLatLngZoom'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.scrollBy(150.0, -225.0), @@ -115,7 +115,7 @@ class MoveCameraState extends State { ), Column( children: [ - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.zoomBy( @@ -126,7 +126,7 @@ class MoveCameraState extends State { }, child: const Text('zoomBy with focus'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.zoomBy(-0.5), @@ -134,7 +134,7 @@ class MoveCameraState extends State { }, child: const Text('zoomBy'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.zoomIn(), @@ -142,7 +142,7 @@ class MoveCameraState extends State { }, child: const Text('zoomIn'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.zoomOut(), @@ -150,7 +150,7 @@ class MoveCameraState extends State { }, child: const Text('zoomOut'), ), - FlatButton( + TextButton( onPressed: () { mapController.moveCamera( CameraUpdate.zoomTo(16.0), diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart index 94b60b7758f9..934d4c647aa4 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart @@ -147,7 +147,7 @@ class MarkerIconsBodyState extends State { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - FlatButton( + TextButton( child: const Text("Set Padding"), onPressed: () { setState(() { @@ -159,7 +159,7 @@ class MarkerIconsBodyState extends State { }); }, ), - FlatButton( + TextButton( child: const Text("Reset Padding"), onPressed: () { setState(() { diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart index 954d8876d1d5..7f0447e9a279 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart @@ -165,15 +165,15 @@ class PlaceCircleBodyState extends State { children: [ Column( children: [ - FlatButton( + TextButton( child: const Text('add'), onPressed: _add, ), - FlatButton( + TextButton( child: const Text('remove'), onPressed: (selectedCircle == null) ? null : _remove, ), - FlatButton( + TextButton( child: const Text('toggle visible'), onPressed: (selectedCircle == null) ? null : _toggleVisible, @@ -182,19 +182,19 @@ class PlaceCircleBodyState extends State { ), Column( children: [ - FlatButton( + TextButton( child: const Text('change stroke width'), onPressed: (selectedCircle == null) ? null : _changeStrokeWidth, ), - FlatButton( + TextButton( child: const Text('change stroke color'), onPressed: (selectedCircle == null) ? null : _changeStrokeColor, ), - FlatButton( + TextButton( child: const Text('change fill color'), onPressed: (selectedCircle == null) ? null diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart index 6808e58c199e..2c5439590443 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart @@ -77,7 +77,7 @@ class PlaceMarkerBodyState extends State { builder: (BuildContext context) { return AlertDialog( actions: [ - FlatButton( + TextButton( child: const Text('OK'), onPressed: () => Navigator.of(context).pop(), ) @@ -313,19 +313,19 @@ class PlaceMarkerBodyState extends State { children: [ Column( children: [ - FlatButton( + TextButton( child: const Text('add'), onPressed: _add, ), - FlatButton( + TextButton( child: const Text('remove'), onPressed: _remove, ), - FlatButton( + TextButton( child: const Text('change info'), onPressed: _changeInfo, ), - FlatButton( + TextButton( child: const Text('change info anchor'), onPressed: _changeInfoAnchor, ), @@ -333,35 +333,35 @@ class PlaceMarkerBodyState extends State { ), Column( children: [ - FlatButton( + TextButton( child: const Text('change alpha'), onPressed: _changeAlpha, ), - FlatButton( + TextButton( child: const Text('change anchor'), onPressed: _changeAnchor, ), - FlatButton( + TextButton( child: const Text('toggle draggable'), onPressed: _toggleDraggable, ), - FlatButton( + TextButton( child: const Text('toggle flat'), onPressed: _toggleFlat, ), - FlatButton( + TextButton( child: const Text('change position'), onPressed: _changePosition, ), - FlatButton( + TextButton( child: const Text('change rotation'), onPressed: _changeRotation, ), - FlatButton( + TextButton( child: const Text('toggle visible'), onPressed: _toggleVisible, ), - FlatButton( + TextButton( child: const Text('change zIndex'), onPressed: _changeZIndex, ), @@ -371,7 +371,7 @@ class PlaceMarkerBodyState extends State { // TODO(amirh): uncomment this one the ImageStream API change makes it to stable. // https://github.com/flutter/flutter/issues/33438 // - // FlatButton( + // TextButton( // child: const Text('set marker icon'), // onPressed: () { // _getAssetIcon(context).then( diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart index 5713f9a099e6..af5ca16bea17 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart @@ -173,20 +173,20 @@ class PlacePolygonBodyState extends State { children: [ Column( children: [ - FlatButton( + TextButton( child: const Text('add'), onPressed: _add, ), - FlatButton( + TextButton( child: const Text('remove'), onPressed: (selectedPolygon == null) ? null : _remove, ), - FlatButton( + TextButton( child: const Text('toggle visible'), onPressed: (selectedPolygon == null) ? null : _toggleVisible, ), - FlatButton( + TextButton( child: const Text('toggle geodesic'), onPressed: (selectedPolygon == null) ? null @@ -196,18 +196,18 @@ class PlacePolygonBodyState extends State { ), Column( children: [ - FlatButton( + TextButton( child: const Text('change stroke width'), onPressed: (selectedPolygon == null) ? null : _changeWidth, ), - FlatButton( + TextButton( child: const Text('change stroke color'), onPressed: (selectedPolygon == null) ? null : _changeStrokeColor, ), - FlatButton( + TextButton( child: const Text('change fill color'), onPressed: (selectedPolygon == null) ? null diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart index 35ffd33a53c2..65201d5d1839 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart @@ -232,22 +232,22 @@ class PlacePolylineBodyState extends State { children: [ Column( children: [ - FlatButton( + TextButton( child: const Text('add'), onPressed: _add, ), - FlatButton( + TextButton( child: const Text('remove'), onPressed: (selectedPolyline == null) ? null : _remove, ), - FlatButton( + TextButton( child: const Text('toggle visible'), onPressed: (selectedPolyline == null) ? null : _toggleVisible, ), - FlatButton( + TextButton( child: const Text('toggle geodesic'), onPressed: (selectedPolyline == null) ? null @@ -257,29 +257,29 @@ class PlacePolylineBodyState extends State { ), Column( children: [ - FlatButton( + TextButton( child: const Text('change width'), onPressed: (selectedPolyline == null) ? null : _changeWidth, ), - FlatButton( + TextButton( child: const Text('change color'), onPressed: (selectedPolyline == null) ? null : _changeColor, ), - FlatButton( + TextButton( child: const Text('change start cap [Android only]'), onPressed: iOSorNotSelected ? null : _changeStartCap, ), - FlatButton( + TextButton( child: const Text('change end cap [Android only]'), onPressed: iOSorNotSelected ? null : _changeEndCap, ), - FlatButton( + TextButton( child: const Text('change joint type [Android only]'), onPressed: iOSorNotSelected ? null : _changeJointType, ), - FlatButton( + TextButton( child: const Text('change pattern [Android only]'), onPressed: iOSorNotSelected ? null : _changePattern, ), diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/snapshot.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/snapshot.dart index 872060d86039..f470a4f9783e 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/snapshot.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/snapshot.dart @@ -47,7 +47,7 @@ class _SnapshotBodyState extends State<_SnapshotBody> { initialCameraPosition: _kInitialPosition, ), ), - FlatButton( + TextButton( child: Text('Take a snapshot'), onPressed: () async { final imageBytes = await _mapController?.takeSnapshot(); diff --git a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart index a238ca3bf8b5..597ab563ae5b 100755 --- a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart +++ b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart @@ -111,11 +111,11 @@ class SignInDemoState extends State { ), const Text('Signed in successfully.'), Text(_contactText ?? ''), - RaisedButton( + ElevatedButton( child: const Text('SIGN OUT'), onPressed: _handleSignOut, ), - RaisedButton( + ElevatedButton( child: const Text('REFRESH'), onPressed: _handleGetContact, ), @@ -126,7 +126,7 @@ class SignInDemoState extends State { mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ const Text('You are not currently signed in.'), - RaisedButton( + ElevatedButton( child: const Text('SIGN IN'), onPressed: _handleSignIn, ), diff --git a/packages/google_sign_in/google_sign_in/example/lib/main.dart b/packages/google_sign_in/google_sign_in/example/lib/main.dart index 6c66d56085db..a738c248a4a4 100755 --- a/packages/google_sign_in/google_sign_in/example/lib/main.dart +++ b/packages/google_sign_in/google_sign_in/example/lib/main.dart @@ -120,11 +120,11 @@ class SignInDemoState extends State { ), const Text("Signed in successfully."), Text(_contactText ?? ''), - RaisedButton( + ElevatedButton( child: const Text('SIGN OUT'), onPressed: _handleSignOut, ), - RaisedButton( + ElevatedButton( child: const Text('REFRESH'), onPressed: _handleGetContact, ), @@ -135,7 +135,7 @@ class SignInDemoState extends State { mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ const Text("You are not currently signed in."), - RaisedButton( + ElevatedButton( child: const Text('SIGN IN'), onPressed: _handleSignIn, ), diff --git a/packages/image_picker/image_picker/example/lib/main.dart b/packages/image_picker/image_picker/example/lib/main.dart index 3047ac13f235..73327ef0caa6 100755 --- a/packages/image_picker/image_picker/example/lib/main.dart +++ b/packages/image_picker/image_picker/example/lib/main.dart @@ -327,13 +327,13 @@ class _MyHomePageState extends State { ], ), actions: [ - FlatButton( + TextButton( child: const Text('CANCEL'), onPressed: () { Navigator.of(context).pop(); }, ), - FlatButton( + TextButton( child: const Text('PICK'), onPressed: () { double width = maxWidthController.text.isNotEmpty diff --git a/packages/in_app_purchase/example/lib/main.dart b/packages/in_app_purchase/example/lib/main.dart index b285b6e2bb87..911edae98cfb 100644 --- a/packages/in_app_purchase/example/lib/main.dart +++ b/packages/in_app_purchase/example/lib/main.dart @@ -245,10 +245,12 @@ class _MyAppState extends State<_MyApp> { ), trailing: previousPurchase != null ? Icon(Icons.check) - : FlatButton( + : TextButton( child: Text(productDetails.price), - color: Colors.green[800], - textColor: Colors.white, + style: TextButton.styleFrom( + backgroundColor: Colors.green[800], + primary: Colors.white, + ), onPressed: () { PurchaseParam purchaseParam = PurchaseParam( productDetails: productDetails, diff --git a/packages/local_auth/example/lib/main.dart b/packages/local_auth/example/lib/main.dart index 241593a08b6a..0a07e2c4437d 100644 --- a/packages/local_auth/example/lib/main.dart +++ b/packages/local_auth/example/lib/main.dart @@ -99,17 +99,17 @@ class _MyAppState extends State { mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ Text('Can check biometrics: $_canCheckBiometrics\n'), - RaisedButton( + ElevatedButton( child: const Text('Check biometrics'), onPressed: _checkBiometrics, ), Text('Available biometrics: $_availableBiometrics\n'), - RaisedButton( + ElevatedButton( child: const Text('Get available biometrics'), onPressed: _getAvailableBiometrics, ), Text('Current State: $_authorized\n'), - RaisedButton( + ElevatedButton( child: Text(_isAuthenticating ? 'Cancel' : 'Authenticate'), onPressed: _isAuthenticating ? _cancelAuthentication : _authenticate, diff --git a/packages/path_provider/path_provider/example/lib/main.dart b/packages/path_provider/path_provider/example/lib/main.dart index ce496e9d4e63..8e929a6882fe 100644 --- a/packages/path_provider/path_provider/example/lib/main.dart +++ b/packages/path_provider/path_provider/example/lib/main.dart @@ -129,7 +129,7 @@ class _MyHomePageState extends State { children: [ Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Temporary Directory'), onPressed: _requestTempDirectory, ), @@ -138,7 +138,7 @@ class _MyHomePageState extends State { future: _tempDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Application Documents Directory'), onPressed: _requestAppDocumentsDirectory, ), @@ -147,7 +147,7 @@ class _MyHomePageState extends State { future: _appDocumentsDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Application Support Directory'), onPressed: _requestAppSupportDirectory, ), @@ -156,7 +156,7 @@ class _MyHomePageState extends State { future: _appSupportDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Application Library Directory'), onPressed: _requestAppLibraryDirectory, ), @@ -165,7 +165,7 @@ class _MyHomePageState extends State { future: _appLibraryDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: Text( '${Platform.isIOS ? "External directories are unavailable " "on iOS" : "Get External Storage Directory"}'), onPressed: @@ -177,7 +177,7 @@ class _MyHomePageState extends State { Column(children: [ Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: Text( '${Platform.isIOS ? "External directories are unavailable " "on iOS" : "Get External Storage Directories"}'), onPressed: Platform.isIOS @@ -196,7 +196,7 @@ class _MyHomePageState extends State { Column(children: [ Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: Text( '${Platform.isIOS ? "External directories are unavailable " "on iOS" : "Get External Cache Directories"}'), onPressed: diff --git a/packages/path_provider/path_provider_macos/example/lib/main.dart b/packages/path_provider/path_provider_macos/example/lib/main.dart index 473a989914f6..86de88e9ad20 100644 --- a/packages/path_provider/path_provider_macos/example/lib/main.dart +++ b/packages/path_provider/path_provider_macos/example/lib/main.dart @@ -1,5 +1,5 @@ -// Copyright 2019 The Flutter Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be +// Copyright 2019 The Flutter Authors. All rights reserved. Use of +// this source code is governed by a BSD-style license that can be // found in the LICENSE file. // ignore_for_file: public_member_api_docs @@ -98,7 +98,7 @@ class _MyHomePageState extends State { children: [ Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Temporary Directory'), onPressed: _requestTempDirectory, ), @@ -107,7 +107,7 @@ class _MyHomePageState extends State { future: _tempDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Application Documents Directory'), onPressed: _requestAppDocumentsDirectory, ), @@ -116,7 +116,7 @@ class _MyHomePageState extends State { future: _appDocumentsDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Application Support Directory'), onPressed: _requestAppSupportDirectory, ), @@ -125,7 +125,7 @@ class _MyHomePageState extends State { future: _appSupportDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Application Library Directory'), onPressed: _requestAppLibraryDirectory, ), @@ -134,7 +134,7 @@ class _MyHomePageState extends State { future: _appLibraryDirectory, builder: _buildDirectory), Padding( padding: const EdgeInsets.all(16.0), - child: RaisedButton( + child: ElevatedButton( child: const Text('Get Downlads Directory'), onPressed: _requestDownloadsDirectory, ), diff --git a/packages/share/example/lib/main.dart b/packages/share/example/lib/main.dart index 7ebce3ce5591..a9ebd6bb79fb 100644 --- a/packages/share/example/lib/main.dart +++ b/packages/share/example/lib/main.dart @@ -78,7 +78,7 @@ class DemoAppState extends State { const Padding(padding: EdgeInsets.only(top: 12.0)), Builder( builder: (BuildContext context) { - return RaisedButton( + return ElevatedButton( child: const Text('Share'), onPressed: text.isEmpty && imagePaths.isEmpty ? null @@ -89,7 +89,7 @@ class DemoAppState extends State { const Padding(padding: EdgeInsets.only(top: 12.0)), Builder( builder: (BuildContext context) { - return RaisedButton( + return ElevatedButton( child: const Text('Share With Empty Origin'), onPressed: () => _onShareWithEmptyOrigin(context), ); @@ -110,11 +110,11 @@ class DemoAppState extends State { _onShare(BuildContext context) async { // A builder is used to retrieve the context immediately - // surrounding the RaisedButton. + // surrounding the ElevatedButton. // // The context's `findRenderObject` returns the first // RenderObject in its descendent tree when it's not - // a RenderObjectWidget. The RaisedButton's RenderObject + // a RenderObjectWidget. The ElevatedButton's RenderObject // has its position and size after it's built. final RenderBox box = context.findRenderObject(); diff --git a/packages/url_launcher/url_launcher/example/lib/main.dart b/packages/url_launcher/url_launcher/example/lib/main.dart index b3e65f38a794..0b310490d0e9 100644 --- a/packages/url_launcher/url_launcher/example/lib/main.dart +++ b/packages/url_launcher/url_launcher/example/lib/main.dart @@ -141,7 +141,7 @@ class _MyHomePageState extends State { decoration: const InputDecoration( hintText: 'Input the phone number to launch')), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _makePhoneCall('tel:$_phone'); }), @@ -151,33 +151,33 @@ class _MyHomePageState extends State { padding: EdgeInsets.all(16.0), child: Text(toLaunch), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInBrowser(toLaunch); }), child: const Text('Launch in browser'), ), const Padding(padding: EdgeInsets.all(16.0)), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewOrVC(toLaunch); }), child: const Text('Launch in app'), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewWithJavaScript(toLaunch); }), child: const Text('Launch in app(JavaScript ON)'), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewWithDomStorage(toLaunch); }), child: const Text('Launch in app(DOM storage ON)'), ), const Padding(padding: EdgeInsets.all(16.0)), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchUniversalLinkIos(toLaunch); }), @@ -185,7 +185,7 @@ class _MyHomePageState extends State { 'Launch a universal link in a native app, fallback to Safari.(Youtube)'), ), const Padding(padding: EdgeInsets.all(16.0)), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewOrVC(toLaunch); Timer(const Duration(seconds: 5), () { diff --git a/packages/url_launcher/url_launcher/example/test/url_launcher_example_test.dart b/packages/url_launcher/url_launcher/example/test/url_launcher_example_test.dart index eddc126a8e66..a890be7f65f1 100644 --- a/packages/url_launcher/url_launcher/example/test/url_launcher_example_test.dart +++ b/packages/url_launcher/url_launcher/example/test/url_launcher_example_test.dart @@ -32,7 +32,7 @@ void main() { headers: defaultHeaders)); Finder browserlaunchBtn = - find.widgetWithText(RaisedButton, 'Launch in browser'); + find.widgetWithText(ElevatedButton, 'Launch in browser'); expect(browserlaunchBtn, findsOneWidget); await tester.tap(browserlaunchBtn); diff --git a/packages/url_launcher/url_launcher/lib/src/link.dart b/packages/url_launcher/url_launcher/lib/src/link.dart index f859bc4ad2cf..14fdc9055d7a 100644 --- a/packages/url_launcher/url_launcher/lib/src/link.dart +++ b/packages/url_launcher/url_launcher/lib/src/link.dart @@ -17,7 +17,7 @@ import 'package:url_launcher_platform_interface/url_launcher_platform_interface. /// ```dart /// Link( /// uri: Uri.parse('https://flutter.dev'), -/// builder: (BuildContext context, FollowLink followLink) => RaisedButton( +/// builder: (BuildContext context, FollowLink followLink) => ElevatedButton( /// onPressed: followLink, /// // ... other properties here ... /// )}, @@ -29,7 +29,7 @@ import 'package:url_launcher_platform_interface/url_launcher_platform_interface. /// ```dart /// Link( /// uri: Uri.parse('/home'), -/// builder: (BuildContext context, FollowLink followLink) => RaisedButton( +/// builder: (BuildContext context, FollowLink followLink) => ElevatedButton( /// onPressed: followLink, /// // ... other properties here ... /// )}, diff --git a/packages/url_launcher/url_launcher_linux/example/lib/main.dart b/packages/url_launcher/url_launcher_linux/example/lib/main.dart index b5cce7482d07..a45862012328 100644 --- a/packages/url_launcher/url_launcher_linux/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_linux/example/lib/main.dart @@ -140,7 +140,7 @@ class _MyHomePageState extends State { decoration: const InputDecoration( hintText: 'Input the phone number to launch')), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _makePhoneCall('tel:$_phone'); }), @@ -150,33 +150,33 @@ class _MyHomePageState extends State { padding: EdgeInsets.all(16.0), child: Text(toLaunch), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInBrowser(toLaunch); }), child: const Text('Launch in browser'), ), const Padding(padding: EdgeInsets.all(16.0)), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewOrVC(toLaunch); }), child: const Text('Launch in app'), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewWithJavaScript(toLaunch); }), child: const Text('Launch in app(JavaScript ON)'), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewWithDomStorage(toLaunch); }), child: const Text('Launch in app(DOM storage ON)'), ), const Padding(padding: EdgeInsets.all(16.0)), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchUniversalLinkIos(toLaunch); }), diff --git a/packages/url_launcher/url_launcher_macos/example/lib/main.dart b/packages/url_launcher/url_launcher_macos/example/lib/main.dart index b5cce7482d07..a45862012328 100644 --- a/packages/url_launcher/url_launcher_macos/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_macos/example/lib/main.dart @@ -140,7 +140,7 @@ class _MyHomePageState extends State { decoration: const InputDecoration( hintText: 'Input the phone number to launch')), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _makePhoneCall('tel:$_phone'); }), @@ -150,33 +150,33 @@ class _MyHomePageState extends State { padding: EdgeInsets.all(16.0), child: Text(toLaunch), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInBrowser(toLaunch); }), child: const Text('Launch in browser'), ), const Padding(padding: EdgeInsets.all(16.0)), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewOrVC(toLaunch); }), child: const Text('Launch in app'), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewWithJavaScript(toLaunch); }), child: const Text('Launch in app(JavaScript ON)'), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInWebViewWithDomStorage(toLaunch); }), child: const Text('Launch in app(DOM storage ON)'), ), const Padding(padding: EdgeInsets.all(16.0)), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchUniversalLinkIos(toLaunch); }), diff --git a/packages/url_launcher/url_launcher_windows/example/lib/main.dart b/packages/url_launcher/url_launcher_windows/example/lib/main.dart index db59af1e5b95..e6c9f477b5a4 100644 --- a/packages/url_launcher/url_launcher_windows/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_windows/example/lib/main.dart @@ -76,7 +76,7 @@ class _MyHomePageState extends State { padding: EdgeInsets.all(16.0), child: Text(toLaunch), ), - RaisedButton( + ElevatedButton( onPressed: () => setState(() { _launched = _launchInBrowser(toLaunch); }), diff --git a/packages/video_player/video_player/example/lib/main.dart b/packages/video_player/video_player/example/lib/main.dart index 42eaaa578fcf..c874f740eab2 100644 --- a/packages/video_player/video_player/example/lib/main.dart +++ b/packages/video_player/video_player/example/lib/main.dart @@ -124,13 +124,13 @@ class _ExampleCard extends StatelessWidget { ), ButtonBar( children: [ - FlatButton( + TextButton( child: const Text('BUY TICKETS'), onPressed: () { /* ... */ }, ), - FlatButton( + TextButton( child: const Text('SELL TICKETS'), onPressed: () { /* ... */ From 295371ebb7ee76161ad3bdb6c75f5af882112e2a Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Wed, 6 Jan 2021 17:28:11 -0800 Subject: [PATCH 2/8] format packages/camera/camera/example/lib/main.dart --- packages/camera/camera/example/lib/main.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/camera/camera/example/lib/main.dart b/packages/camera/camera/example/lib/main.dart index 1f3b945aaf3d..a0285f416377 100644 --- a/packages/camera/camera/example/lib/main.dart +++ b/packages/camera/camera/example/lib/main.dart @@ -330,9 +330,10 @@ class _CameraExampleHomeState extends State TextButton( child: Text('AUTO'), style: TextButton.styleFrom( - primary: controller?.value?.exposureMode == ExposureMode.auto - ? Colors.orange - : Colors.blue, + primary: + controller?.value?.exposureMode == ExposureMode.auto + ? Colors.orange + : Colors.blue, ), onPressed: controller != null ? () => @@ -346,9 +347,10 @@ class _CameraExampleHomeState extends State TextButton( child: Text('LOCKED'), style: TextButton.styleFrom( - primary: controller?.value?.exposureMode == ExposureMode.auto - ? Colors.orange - : Colors.blue, + primary: + controller?.value?.exposureMode == ExposureMode.auto + ? Colors.orange + : Colors.blue, ), onPressed: controller != null ? () => From 7e8807b9544a9d8a38d09091209a131ab710475b Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Wed, 6 Jan 2021 17:43:48 -0800 Subject: [PATCH 3/8] updated --- packages/camera/camera/example/lib/main.dart | 17 +++++------------ .../example/lib/get_directory_page.dart | 6 ++++-- .../file_selector/example/lib/home_page.dart | 19 +++++++++---------- .../example/lib/open_image_page.dart | 6 ++++-- .../lib/open_multiple_images_page.dart | 6 ++++-- .../example/lib/open_text_page.dart | 6 ++++-- .../example/lib/save_text_page.dart | 6 ++++-- 7 files changed, 34 insertions(+), 32 deletions(-) diff --git a/packages/camera/camera/example/lib/main.dart b/packages/camera/camera/example/lib/main.dart index a0285f416377..a73fb6cf4a49 100644 --- a/packages/camera/camera/example/lib/main.dart +++ b/packages/camera/camera/example/lib/main.dart @@ -313,6 +313,9 @@ class _CameraExampleHomeState extends State } Widget _exposureModeControlRowWidget() { + final ButtonStyle style = TextButton.styleFrom( + primary: controller?.value?.exposureMode == ExposureMode.auto ? Colors.orange : Colors.blue, + ); return SizeTransition( sizeFactor: _exposureModeControlRowAnimation, child: ClipRect( @@ -329,12 +332,7 @@ class _CameraExampleHomeState extends State children: [ TextButton( child: Text('AUTO'), - style: TextButton.styleFrom( - primary: - controller?.value?.exposureMode == ExposureMode.auto - ? Colors.orange - : Colors.blue, - ), + style: style, onPressed: controller != null ? () => onSetExposureModeButtonPressed(ExposureMode.auto) @@ -346,12 +344,7 @@ class _CameraExampleHomeState extends State ), TextButton( child: Text('LOCKED'), - style: TextButton.styleFrom( - primary: - controller?.value?.exposureMode == ExposureMode.auto - ? Colors.orange - : Colors.blue, - ), + style: style, onPressed: controller != null ? () => onSetExposureModeButtonPressed(ExposureMode.locked) diff --git a/packages/file_selector/file_selector/example/lib/get_directory_page.dart b/packages/file_selector/file_selector/example/lib/get_directory_page.dart index 17ac77c154b9..6463fb532957 100644 --- a/packages/file_selector/file_selector/example/lib/get_directory_page.dart +++ b/packages/file_selector/file_selector/example/lib/get_directory_page.dart @@ -25,8 +25,10 @@ class GetDirectoryPage extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: ElevatedButton.styleFrom( + primary: Colors.blue, + onPrimary: Colors.white, + ), child: Text('Press to ask user to choose a directory'), onPressed: () => _getDirectoryPath(context), ), diff --git a/packages/file_selector/file_selector/example/lib/home_page.dart b/packages/file_selector/file_selector/example/lib/home_page.dart index be3bdce92995..1cb7ef261e88 100644 --- a/packages/file_selector/file_selector/example/lib/home_page.dart +++ b/packages/file_selector/file_selector/example/lib/home_page.dart @@ -4,6 +4,10 @@ import 'package:flutter/material.dart'; class HomePage extends StatelessWidget { @override Widget build(BuildContext context) { + final ButtonStyle style = ElevatedButton.styleFrom( + primary: Colors.blue, + onPrimary: Colors.white, + ); return Scaffold( appBar: AppBar( title: Text('File Selector Demo Home Page'), @@ -13,36 +17,31 @@ class HomePage extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: style, child: Text('Open a text file'), onPressed: () => Navigator.pushNamed(context, '/open/text'), ), SizedBox(height: 10), ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: style, child: Text('Open an image'), onPressed: () => Navigator.pushNamed(context, '/open/image'), ), SizedBox(height: 10), ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: style, child: Text('Open multiple images'), onPressed: () => Navigator.pushNamed(context, '/open/images'), ), SizedBox(height: 10), ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: style, child: Text('Save a file'), onPressed: () => Navigator.pushNamed(context, '/save/text'), ), SizedBox(height: 10), ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: style, child: Text('Open a get directory dialog'), onPressed: () => Navigator.pushNamed(context, '/directory'), ), diff --git a/packages/file_selector/file_selector/example/lib/open_image_page.dart b/packages/file_selector/file_selector/example/lib/open_image_page.dart index 631e7254e894..593a1d60aed8 100644 --- a/packages/file_selector/file_selector/example/lib/open_image_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_image_page.dart @@ -32,8 +32,10 @@ class OpenImagePage extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: ElevatedButton.styleFrom( + primary: Colors.blue, + onPrimary: Colors.white, + ), child: Text('Press to open an image file(png, jpg)'), onPressed: () => _openImageFile(context), ), diff --git a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart index c06b62200c5d..58b59cd91b03 100644 --- a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart @@ -35,8 +35,10 @@ class OpenMultipleImagesPage extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: ElevatedButton.styleFrom( + primary: Colors.blue, + onPrimary: Colors.white, + ), child: Text('Press to open multiple images (png, jpg)'), onPressed: () => _openImageFile(context), ), diff --git a/packages/file_selector/file_selector/example/lib/open_text_page.dart b/packages/file_selector/file_selector/example/lib/open_text_page.dart index 8e8df84c2840..299d0e2dc21a 100644 --- a/packages/file_selector/file_selector/example/lib/open_text_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_text_page.dart @@ -29,8 +29,10 @@ class OpenTextPage extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: ElevatedButton.styleFrom( + primary: Colors.blue, + onPrimary: Colors.white, + ), child: Text('Press to open a text file (json, txt)'), onPressed: () => _openTextFile(context), ), diff --git a/packages/file_selector/file_selector/example/lib/save_text_page.dart b/packages/file_selector/file_selector/example/lib/save_text_page.dart index 05644092c117..47408662ecee 100644 --- a/packages/file_selector/file_selector/example/lib/save_text_page.dart +++ b/packages/file_selector/file_selector/example/lib/save_text_page.dart @@ -52,8 +52,10 @@ class SaveTextPage extends StatelessWidget { ), SizedBox(height: 10), ElevatedButton( - color: Colors.blue, - textColor: Colors.white, + style: ElevatedButton.styleFrom( + primary: Colors.blue, + onPrimary: Colors.white, + ), child: Text('Press to save a text file'), onPressed: () => _saveFile(), ), From 9dd36ec5e76fe0fea04c2df4f23ceb6051343015 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Thu, 7 Jan 2021 08:50:05 -0800 Subject: [PATCH 4/8] dartfmt camera/example/lib/main.dart --- packages/camera/camera/example/lib/main.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/camera/camera/example/lib/main.dart b/packages/camera/camera/example/lib/main.dart index a73fb6cf4a49..dd1033be3335 100644 --- a/packages/camera/camera/example/lib/main.dart +++ b/packages/camera/camera/example/lib/main.dart @@ -314,7 +314,9 @@ class _CameraExampleHomeState extends State Widget _exposureModeControlRowWidget() { final ButtonStyle style = TextButton.styleFrom( - primary: controller?.value?.exposureMode == ExposureMode.auto ? Colors.orange : Colors.blue, + primary: controller?.value?.exposureMode == ExposureMode.auto + ? Colors.orange + : Colors.blue, ); return SizeTransition( sizeFactor: _exposureModeControlRowAnimation, From 13661048ce1f0fa80cd6d9fdc7d15a674cce4f4f Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Thu, 7 Jan 2021 12:04:25 -0800 Subject: [PATCH 5/8] version update android_alarm_manager --- packages/android_alarm_manager/CHANGELOG.md | 4 ++++ packages/android_alarm_manager/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/android_alarm_manager/CHANGELOG.md b/packages/android_alarm_manager/CHANGELOG.md index 1b6a7b749e66..fb0c89265bef 100644 --- a/packages/android_alarm_manager/CHANGELOG.md +++ b/packages/android_alarm_manager/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.5+20 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.4.5+19 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/android_alarm_manager/pubspec.yaml b/packages/android_alarm_manager/pubspec.yaml index b055823c2db3..d1771c0f0380 100644 --- a/packages/android_alarm_manager/pubspec.yaml +++ b/packages/android_alarm_manager/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter plugin for accessing the Android AlarmManager service, and # 0.4.y+z is compatible with 1.0.0, if you land a breaking change bump # the version to 2.0.0. # See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0 -version: 0.4.5+19 +version: 0.4.5+20 homepage: https://github.com/flutter/plugins/tree/master/packages/android_alarm_manager dependencies: From e2ed4844d661a122e90f2af2896141285ea80bad Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Thu, 7 Jan 2021 12:19:56 -0800 Subject: [PATCH 6/8] update versions --- packages/android_intent/CHANGELOG.md | 4 ++++ packages/android_intent/pubspec.yaml | 2 +- packages/battery/battery/CHANGELOG.md | 4 ++++ packages/battery/battery/pubspec.yaml | 2 +- packages/camera/camera/CHANGELOG.md | 4 ++++ packages/camera/camera/pubspec.yaml | 2 +- packages/file_selector/file_selector/CHANGELOG.md | 4 ++++ packages/file_selector/file_selector/pubspec.yaml | 2 +- packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md | 4 ++++ packages/google_maps_flutter/google_maps_flutter/pubspec.yaml | 2 +- .../extension_google_sign_in_as_googleapis_auth/CHANGELOG.md | 4 ++++ .../extension_google_sign_in_as_googleapis_auth/pubspec.yaml | 2 +- packages/google_sign_in/google_sign_in/CHANGELOG.md | 4 ++++ packages/google_sign_in/google_sign_in/pubspec.yaml | 2 +- packages/image_picker/image_picker/CHANGELOG.md | 4 ++++ packages/image_picker/image_picker/pubspec.yaml | 2 +- packages/in_app_purchase/CHANGELOG.md | 4 ++++ packages/in_app_purchase/pubspec.yaml | 2 +- packages/local_auth/CHANGELOG.md | 4 ++++ packages/local_auth/pubspec.yaml | 2 +- packages/path_provider/path_provider/CHANGELOG.md | 4 ++++ packages/path_provider/path_provider/pubspec.yaml | 2 +- packages/path_provider/path_provider_macos/CHANGELOG.md | 4 ++++ packages/path_provider/path_provider_macos/pubspec.yaml | 2 +- packages/share/CHANGELOG.md | 4 ++++ packages/share/pubspec.yaml | 2 +- packages/url_launcher/url_launcher/CHANGELOG.md | 4 ++++ packages/url_launcher/url_launcher/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_linux/CHANGELOG.md | 4 ++++ packages/url_launcher/url_launcher_linux/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_macos/CHANGELOG.md | 4 ++++ packages/url_launcher/url_launcher_macos/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_windows/CHANGELOG.md | 4 ++++ packages/url_launcher/url_launcher_windows/pubspec.yaml | 2 +- packages/video_player/video_player/CHANGELOG.md | 4 ++++ packages/video_player/video_player/pubspec.yaml | 2 +- 36 files changed, 90 insertions(+), 18 deletions(-) diff --git a/packages/android_intent/CHANGELOG.md b/packages/android_intent/CHANGELOG.md index 113e4464c947..2606395e8d59 100644 --- a/packages/android_intent/CHANGELOG.md +++ b/packages/android_intent/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.0-nullsafety.2 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 2.0.0-nullsafety.1 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/android_intent/pubspec.yaml b/packages/android_intent/pubspec.yaml index 52928f08093f..c61460718fc1 100644 --- a/packages/android_intent/pubspec.yaml +++ b/packages/android_intent/pubspec.yaml @@ -1,7 +1,7 @@ name: android_intent description: Flutter plugin for launching Android Intents. Not supported on iOS. homepage: https://github.com/flutter/plugins/tree/master/packages/android_intent -version: 2.0.0-nullsafety.1 +version: 2.0.0-nullsafety.2 flutter: plugin: diff --git a/packages/battery/battery/CHANGELOG.md b/packages/battery/battery/CHANGELOG.md index c9268d4d4e3c..b64fcb2c2fcc 100644 --- a/packages/battery/battery/CHANGELOG.md +++ b/packages/battery/battery/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.11 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 1.0.10 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/battery/battery/pubspec.yaml b/packages/battery/battery/pubspec.yaml index d3c823d73ad2..9c2c2766c85f 100644 --- a/packages/battery/battery/pubspec.yaml +++ b/packages/battery/battery/pubspec.yaml @@ -2,7 +2,7 @@ name: battery description: Flutter plugin for accessing information about the battery state (full, charging, discharging) on Android and iOS. homepage: https://github.com/flutter/plugins/tree/master/packages/battery/battery -version: 1.0.10 +version: 1.0.11 flutter: plugin: diff --git a/packages/camera/camera/CHANGELOG.md b/packages/camera/camera/CHANGELOG.md index 55c7eb1fcfd2..cb592bea4e1f 100644 --- a/packages/camera/camera/CHANGELOG.md +++ b/packages/camera/camera/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.4+4 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.6.4+3 * Detect if selected camera supports auto focus and act accordingly on Android. This solves a problem where front facing cameras are not capturing the picture because auto focus is not supported. diff --git a/packages/camera/camera/pubspec.yaml b/packages/camera/camera/pubspec.yaml index 99f41fb165a5..6c6d5159800d 100644 --- a/packages/camera/camera/pubspec.yaml +++ b/packages/camera/camera/pubspec.yaml @@ -2,7 +2,7 @@ name: camera description: A Flutter plugin for getting information about and controlling the camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video, and streaming image buffers to dart. -version: 0.6.4+3 +version: 0.6.4+4 homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera dependencies: diff --git a/packages/file_selector/file_selector/CHANGELOG.md b/packages/file_selector/file_selector/CHANGELOG.md index 92136485a447..01de12badbea 100644 --- a/packages/file_selector/file_selector/CHANGELOG.md +++ b/packages/file_selector/file_selector/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.7.0+2 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.7.0+1 * Update Flutter SDK constraint. diff --git a/packages/file_selector/file_selector/pubspec.yaml b/packages/file_selector/file_selector/pubspec.yaml index f095ba1f6a36..a55b7f4e06e7 100644 --- a/packages/file_selector/file_selector/pubspec.yaml +++ b/packages/file_selector/file_selector/pubspec.yaml @@ -1,7 +1,7 @@ name: file_selector description: Flutter plugin for opening and saving files. homepage: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector -version: 0.7.0+1 +version: 0.7.0+2 dependencies: flutter: diff --git a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md index 7783f3042dde..64b525e4e360 100644 --- a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.10 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 1.0.9 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml index 7d480ebf74f2..4faadf4c2166 100644 --- a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml @@ -1,7 +1,7 @@ name: google_maps_flutter description: A Flutter plugin for integrating Google Maps in iOS and Android applications. homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/google_maps_flutter -version: 1.0.9 +version: 1.0.10 dependencies: flutter: diff --git a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md index 25539436f8fa..206807ab5eff 100644 --- a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md +++ b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.4 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 1.0.3 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/pubspec.yaml b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/pubspec.yaml index aecd5a9569be..9da5f0baa848 100644 --- a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/pubspec.yaml +++ b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/pubspec.yaml @@ -6,7 +6,7 @@ name: extension_google_sign_in_as_googleapis_auth description: A bridge package between google_sign_in and googleapis_auth, to create Authenticated Clients from google_sign_in user credentials. -version: 1.0.3 +version: 1.0.4 homepage: https://github.com/flutter/plugins/google_sign_in/extension_google_sign_in_as_googleapis_auth dependencies: diff --git a/packages/google_sign_in/google_sign_in/CHANGELOG.md b/packages/google_sign_in/google_sign_in/CHANGELOG.md index 8a4dd6bc817e..aa4358caa64b 100644 --- a/packages/google_sign_in/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.5.9 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 4.5.8 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/google_sign_in/google_sign_in/pubspec.yaml b/packages/google_sign_in/google_sign_in/pubspec.yaml index b99b231adb9d..6e0366c790bf 100644 --- a/packages/google_sign_in/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/pubspec.yaml @@ -2,7 +2,7 @@ name: google_sign_in description: Flutter plugin for Google Sign-In, a secure authentication system for signing in with a Google account on Android and iOS. homepage: https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in -version: 4.5.8 +version: 4.5.9 flutter: plugin: diff --git a/packages/image_picker/image_picker/CHANGELOG.md b/packages/image_picker/image_picker/CHANGELOG.md index 32d61cc79607..9d1d89e35779 100644 --- a/packages/image_picker/image_picker/CHANGELOG.md +++ b/packages/image_picker/image_picker/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.7+20 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.6.7+19 * Do not copy static field to another static field. diff --git a/packages/image_picker/image_picker/pubspec.yaml b/packages/image_picker/image_picker/pubspec.yaml index 377c3840c2d1..af409fd1c5b3 100755 --- a/packages/image_picker/image_picker/pubspec.yaml +++ b/packages/image_picker/image_picker/pubspec.yaml @@ -2,7 +2,7 @@ name: image_picker description: Flutter plugin for selecting images from the Android and iOS image library, and taking new pictures with the camera. homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker -version: 0.6.7+19 +version: 0.6.7+20 flutter: plugin: diff --git a/packages/in_app_purchase/CHANGELOG.md b/packages/in_app_purchase/CHANGELOG.md index 0a5794f931a8..b1a0f596f456 100644 --- a/packages/in_app_purchase/CHANGELOG.md +++ b/packages/in_app_purchase/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.4+19 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.3.4+18 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/pubspec.yaml index 5e5ef2447278..f87b807a9b91 100644 --- a/packages/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/pubspec.yaml @@ -1,7 +1,7 @@ name: in_app_purchase description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play. homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase -version: 0.3.4+18 +version: 0.3.4+19 dependencies: async: ^2.0.8 diff --git a/packages/local_auth/CHANGELOG.md b/packages/local_auth/CHANGELOG.md index 863d72ed1da4..64aeea5593f4 100644 --- a/packages/local_auth/CHANGELOG.md +++ b/packages/local_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0-nullsafety.3 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 1.0.0-nullsafety.2 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/local_auth/pubspec.yaml b/packages/local_auth/pubspec.yaml index 444eec2efa53..050cedb5d7d0 100644 --- a/packages/local_auth/pubspec.yaml +++ b/packages/local_auth/pubspec.yaml @@ -2,7 +2,7 @@ name: local_auth description: Flutter plugin for Android and iOS device authentication sensors such as Fingerprint Reader and Touch ID. homepage: https://github.com/flutter/plugins/tree/master/packages/local_auth -version: 1.0.0-nullsafety.2 +version: 1.0.0-nullsafety.3 flutter: plugin: diff --git a/packages/path_provider/path_provider/CHANGELOG.md b/packages/path_provider/path_provider/CHANGELOG.md index f0e3cd9bfde8..77fef83592f8 100644 --- a/packages/path_provider/path_provider/CHANGELOG.md +++ b/packages/path_provider/path_provider/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.6.27 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 1.6.26 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/path_provider/path_provider/pubspec.yaml b/packages/path_provider/path_provider/pubspec.yaml index 15f9c57a0c98..649b3420d72f 100644 --- a/packages/path_provider/path_provider/pubspec.yaml +++ b/packages/path_provider/path_provider/pubspec.yaml @@ -1,7 +1,7 @@ name: path_provider description: Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories. homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider -version: 1.6.26 +version: 1.6.27 flutter: plugin: diff --git a/packages/path_provider/path_provider_macos/CHANGELOG.md b/packages/path_provider/path_provider_macos/CHANGELOG.md index d9be6859e125..fea54bac6684 100644 --- a/packages/path_provider/path_provider_macos/CHANGELOG.md +++ b/packages/path_provider/path_provider_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.4+8 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.0.4+7 * Update Flutter SDK constraint. diff --git a/packages/path_provider/path_provider_macos/pubspec.yaml b/packages/path_provider/path_provider_macos/pubspec.yaml index 05f03a7930ba..0af1cfbf0aaa 100644 --- a/packages/path_provider/path_provider_macos/pubspec.yaml +++ b/packages/path_provider/path_provider_macos/pubspec.yaml @@ -3,7 +3,7 @@ description: macOS implementation of the path_provider plugin # 0.0.y+z is compatible with 1.0.0, if you land a breaking change bump # the version to 2.0.0. # See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0 -version: 0.0.4+7 +version: 0.0.4+8 homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_macos flutter: diff --git a/packages/share/CHANGELOG.md b/packages/share/CHANGELOG.md index eef22bfcc76e..f627d8e14beb 100644 --- a/packages/share/CHANGELOG.md +++ b/packages/share/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.0-nullsafety.2 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 2.0.0-nullsafety.1 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/share/pubspec.yaml b/packages/share/pubspec.yaml index 07ead8f3f659..ca9b506bf35c 100644 --- a/packages/share/pubspec.yaml +++ b/packages/share/pubspec.yaml @@ -2,7 +2,7 @@ name: share description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. homepage: https://github.com/flutter/plugins/tree/master/packages/share -version: 2.0.0-nullsafety.1 +version: 2.0.0-nullsafety.2 flutter: plugin: diff --git a/packages/url_launcher/url_launcher/CHANGELOG.md b/packages/url_launcher/url_launcher/CHANGELOG.md index eb08455c4785..f86d06ec1423 100644 --- a/packages/url_launcher/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/url_launcher/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.0.0-nullsafety.4 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 6.0.0-nullsafety.3 * forceSafariVC should be nullable. diff --git a/packages/url_launcher/url_launcher/pubspec.yaml b/packages/url_launcher/url_launcher/pubspec.yaml index 0ab2d410c000..871c43ced733 100644 --- a/packages/url_launcher/url_launcher/pubspec.yaml +++ b/packages/url_launcher/url_launcher/pubspec.yaml @@ -2,7 +2,7 @@ name: url_launcher description: Flutter plugin for launching a URL on Android and iOS. Supports web, phone, SMS, and email schemes. homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher -version: 6.0.0-nullsafety.3 +version: 6.0.0-nullsafety.4 flutter: plugin: diff --git a/packages/url_launcher/url_launcher_linux/CHANGELOG.md b/packages/url_launcher/url_launcher_linux/CHANGELOG.md index cc3ee456c938..7db3a53f7d7a 100644 --- a/packages/url_launcher/url_launcher_linux/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_linux/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.0-nullsafety.3 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.1.0-nullsafety.2 * Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276)) diff --git a/packages/url_launcher/url_launcher_linux/pubspec.yaml b/packages/url_launcher/url_launcher_linux/pubspec.yaml index 41366a1d4f1e..c7aac06b88e5 100644 --- a/packages/url_launcher/url_launcher_linux/pubspec.yaml +++ b/packages/url_launcher/url_launcher_linux/pubspec.yaml @@ -1,6 +1,6 @@ name: url_launcher_linux description: Linux implementation of the url_launcher plugin. -version: 0.1.0-nullsafety.2 +version: 0.1.0-nullsafety.3 homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_linux flutter: diff --git a/packages/url_launcher/url_launcher_macos/CHANGELOG.md b/packages/url_launcher/url_launcher_macos/CHANGELOG.md index 8a0e6575b5f2..c066da35423e 100644 --- a/packages/url_launcher/url_launcher_macos/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.1.0-nullsafety.2 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + # 0.1.0-nullsafety.1 * Bump SDK to support null safety. diff --git a/packages/url_launcher/url_launcher_macos/pubspec.yaml b/packages/url_launcher/url_launcher_macos/pubspec.yaml index 9ce9c9c47ea9..be2dd2739298 100644 --- a/packages/url_launcher/url_launcher_macos/pubspec.yaml +++ b/packages/url_launcher/url_launcher_macos/pubspec.yaml @@ -3,7 +3,7 @@ description: macOS implementation of the url_launcher plugin. # 0.0.y+z is compatible with 1.0.0, if you land a breaking change bump # the version to 2.0.0. # See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0 -version: 0.1.0-nullsafety.1 +version: 0.1.0-nullsafety.2 homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_macos flutter: diff --git a/packages/url_launcher/url_launcher_windows/CHANGELOG.md b/packages/url_launcher/url_launcher_windows/CHANGELOG.md index e9649ff6fd1e..dbe424547171 100644 --- a/packages/url_launcher/url_launcher_windows/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.0-nullsafety.2 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 0.1.0-nullsafety.1 * Bump Dart SDK to support null safety. diff --git a/packages/url_launcher/url_launcher_windows/pubspec.yaml b/packages/url_launcher/url_launcher_windows/pubspec.yaml index d2da4c534322..f7c96bf4a1bd 100644 --- a/packages/url_launcher/url_launcher_windows/pubspec.yaml +++ b/packages/url_launcher/url_launcher_windows/pubspec.yaml @@ -3,7 +3,7 @@ description: Windows implementation of the url_launcher plugin. # 0.0.y+z is compatible with 1.0.0, if you land a breaking change bump # the version to 2.0.0. # See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0 -version: 0.1.0-nullsafety.1 +version: 0.1.0-nullsafety.2 homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_windows flutter: diff --git a/packages/video_player/video_player/CHANGELOG.md b/packages/video_player/video_player/CHANGELOG.md index c79b0a02bc98..3346db03bd55 100644 --- a/packages/video_player/video_player/CHANGELOG.md +++ b/packages/video_player/video_player/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.0-nullsafety.7 + +* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. + ## 2.0.0-nullsafety.6 * Fix `VideoPlayerValue toString()` test. diff --git a/packages/video_player/video_player/pubspec.yaml b/packages/video_player/video_player/pubspec.yaml index a8066e129608..e4694195ebde 100644 --- a/packages/video_player/video_player/pubspec.yaml +++ b/packages/video_player/video_player/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter plugin for displaying inline video with other Flutter # 0.10.y+z is compatible with 1.0.0, if you land a breaking change bump # the version to 2.0.0. # See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0 -version: 2.0.0-nullsafety.6 +version: 2.0.0-nullsafety.7 homepage: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player flutter: From 1f13e3006c2f7551e9ef0fd54aa9a370beba6f18 Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Thu, 7 Jan 2021 12:46:29 -0800 Subject: [PATCH 7/8] review --- packages/camera/camera/example/lib/main.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/camera/camera/example/lib/main.dart b/packages/camera/camera/example/lib/main.dart index dd1033be3335..5324e3d09383 100644 --- a/packages/camera/camera/example/lib/main.dart +++ b/packages/camera/camera/example/lib/main.dart @@ -313,11 +313,16 @@ class _CameraExampleHomeState extends State } Widget _exposureModeControlRowWidget() { - final ButtonStyle style = TextButton.styleFrom( + final ButtonStyle styleAuto = TextButton.styleFrom( primary: controller?.value?.exposureMode == ExposureMode.auto ? Colors.orange : Colors.blue, ); + final ButtonStyle styleLocked = TextButton.styleFrom( + primary: controller?.value?.exposureMode == ExposureMode.locked + ? Colors.orange + : Colors.blue, + ); return SizeTransition( sizeFactor: _exposureModeControlRowAnimation, child: ClipRect( @@ -334,7 +339,7 @@ class _CameraExampleHomeState extends State children: [ TextButton( child: Text('AUTO'), - style: style, + style: styleAuto, onPressed: controller != null ? () => onSetExposureModeButtonPressed(ExposureMode.auto) @@ -346,7 +351,7 @@ class _CameraExampleHomeState extends State ), TextButton( child: Text('LOCKED'), - style: style, + style: styleLocked, onPressed: controller != null ? () => onSetExposureModeButtonPressed(ExposureMode.locked) From 35fedb9d5f63df531bf5fae66feab8250a279efb Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Thu, 7 Jan 2021 13:37:35 -0800 Subject: [PATCH 8/8] review --- packages/android_alarm_manager/CHANGELOG.md | 2 +- packages/android_intent/CHANGELOG.md | 2 +- packages/battery/battery/CHANGELOG.md | 2 +- packages/camera/camera/CHANGELOG.md | 2 +- packages/file_selector/file_selector/CHANGELOG.md | 2 +- packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md | 2 +- .../extension_google_sign_in_as_googleapis_auth/CHANGELOG.md | 2 +- packages/google_sign_in/google_sign_in/CHANGELOG.md | 2 +- packages/image_picker/image_picker/CHANGELOG.md | 2 +- packages/in_app_purchase/CHANGELOG.md | 2 +- packages/local_auth/CHANGELOG.md | 2 +- packages/path_provider/path_provider/CHANGELOG.md | 2 +- packages/path_provider/path_provider_macos/CHANGELOG.md | 2 +- .../path_provider/path_provider_macos/example/lib/main.dart | 4 ++-- packages/share/CHANGELOG.md | 2 +- packages/url_launcher/url_launcher/CHANGELOG.md | 2 +- packages/url_launcher/url_launcher_linux/CHANGELOG.md | 2 +- packages/url_launcher/url_launcher_macos/CHANGELOG.md | 2 +- packages/url_launcher/url_launcher_windows/CHANGELOG.md | 2 +- packages/video_player/video_player/CHANGELOG.md | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/android_alarm_manager/CHANGELOG.md b/packages/android_alarm_manager/CHANGELOG.md index fb0c89265bef..df5b7a2fa752 100644 --- a/packages/android_alarm_manager/CHANGELOG.md +++ b/packages/android_alarm_manager/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.4.5+20 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.4.5+19 diff --git a/packages/android_intent/CHANGELOG.md b/packages/android_intent/CHANGELOG.md index 2606395e8d59..3e878a50aac2 100644 --- a/packages/android_intent/CHANGELOG.md +++ b/packages/android_intent/CHANGELOG.md @@ -1,6 +1,6 @@ ## 2.0.0-nullsafety.2 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 2.0.0-nullsafety.1 diff --git a/packages/battery/battery/CHANGELOG.md b/packages/battery/battery/CHANGELOG.md index b64fcb2c2fcc..ca35c96fb569 100644 --- a/packages/battery/battery/CHANGELOG.md +++ b/packages/battery/battery/CHANGELOG.md @@ -1,6 +1,6 @@ ## 1.0.11 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 1.0.10 diff --git a/packages/camera/camera/CHANGELOG.md b/packages/camera/camera/CHANGELOG.md index e5c1e9d47269..2f9b5399d6dd 100644 --- a/packages/camera/camera/CHANGELOG.md +++ b/packages/camera/camera/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.6.4+5 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.6.4+4 diff --git a/packages/file_selector/file_selector/CHANGELOG.md b/packages/file_selector/file_selector/CHANGELOG.md index 01de12badbea..fe01ffec47b6 100644 --- a/packages/file_selector/file_selector/CHANGELOG.md +++ b/packages/file_selector/file_selector/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.7.0+2 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.7.0+1 diff --git a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md index 64b525e4e360..b23ef79651e7 100644 --- a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md @@ -1,6 +1,6 @@ ## 1.0.10 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 1.0.9 diff --git a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md index 206807ab5eff..4afb1a0e98bf 100644 --- a/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md +++ b/packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md @@ -1,6 +1,6 @@ ## 1.0.4 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 1.0.3 diff --git a/packages/google_sign_in/google_sign_in/CHANGELOG.md b/packages/google_sign_in/google_sign_in/CHANGELOG.md index aa4358caa64b..7f5b4f2bdd17 100644 --- a/packages/google_sign_in/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in/CHANGELOG.md @@ -1,6 +1,6 @@ ## 4.5.9 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 4.5.8 diff --git a/packages/image_picker/image_picker/CHANGELOG.md b/packages/image_picker/image_picker/CHANGELOG.md index 527091fdf45f..1b3146d532fa 100644 --- a/packages/image_picker/image_picker/CHANGELOG.md +++ b/packages/image_picker/image_picker/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.6.7+21 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.6.7+20 diff --git a/packages/in_app_purchase/CHANGELOG.md b/packages/in_app_purchase/CHANGELOG.md index ec68022ee9a7..3c77e0c313f5 100644 --- a/packages/in_app_purchase/CHANGELOG.md +++ b/packages/in_app_purchase/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.3.5+1 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.3.5 diff --git a/packages/local_auth/CHANGELOG.md b/packages/local_auth/CHANGELOG.md index 64aeea5593f4..b27ec83d41a7 100644 --- a/packages/local_auth/CHANGELOG.md +++ b/packages/local_auth/CHANGELOG.md @@ -1,6 +1,6 @@ ## 1.0.0-nullsafety.3 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 1.0.0-nullsafety.2 diff --git a/packages/path_provider/path_provider/CHANGELOG.md b/packages/path_provider/path_provider/CHANGELOG.md index 77fef83592f8..bd6c0bc651f5 100644 --- a/packages/path_provider/path_provider/CHANGELOG.md +++ b/packages/path_provider/path_provider/CHANGELOG.md @@ -1,6 +1,6 @@ ## 1.6.27 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 1.6.26 diff --git a/packages/path_provider/path_provider_macos/CHANGELOG.md b/packages/path_provider/path_provider_macos/CHANGELOG.md index fea54bac6684..b082aefd9da6 100644 --- a/packages/path_provider/path_provider_macos/CHANGELOG.md +++ b/packages/path_provider/path_provider_macos/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.0.4+8 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.0.4+7 diff --git a/packages/path_provider/path_provider_macos/example/lib/main.dart b/packages/path_provider/path_provider_macos/example/lib/main.dart index 86de88e9ad20..1c1c90b983c3 100644 --- a/packages/path_provider/path_provider_macos/example/lib/main.dart +++ b/packages/path_provider/path_provider_macos/example/lib/main.dart @@ -1,5 +1,5 @@ -// Copyright 2019 The Flutter Authors. All rights reserved. Use of -// this source code is governed by a BSD-style license that can be +// Copyright 2019 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // ignore_for_file: public_member_api_docs diff --git a/packages/share/CHANGELOG.md b/packages/share/CHANGELOG.md index f627d8e14beb..855e737a1cd4 100644 --- a/packages/share/CHANGELOG.md +++ b/packages/share/CHANGELOG.md @@ -1,6 +1,6 @@ ## 2.0.0-nullsafety.2 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 2.0.0-nullsafety.1 diff --git a/packages/url_launcher/url_launcher/CHANGELOG.md b/packages/url_launcher/url_launcher/CHANGELOG.md index f86d06ec1423..73852cdfea12 100644 --- a/packages/url_launcher/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/url_launcher/CHANGELOG.md @@ -1,6 +1,6 @@ ## 6.0.0-nullsafety.4 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 6.0.0-nullsafety.3 diff --git a/packages/url_launcher/url_launcher_linux/CHANGELOG.md b/packages/url_launcher/url_launcher_linux/CHANGELOG.md index 7db3a53f7d7a..2d5a9a7d05af 100644 --- a/packages/url_launcher/url_launcher_linux/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_linux/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.1.0-nullsafety.3 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.1.0-nullsafety.2 diff --git a/packages/url_launcher/url_launcher_macos/CHANGELOG.md b/packages/url_launcher/url_launcher_macos/CHANGELOG.md index c066da35423e..a5477a1b1501 100644 --- a/packages/url_launcher/url_launcher_macos/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_macos/CHANGELOG.md @@ -1,6 +1,6 @@ # 0.1.0-nullsafety.2 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. # 0.1.0-nullsafety.1 diff --git a/packages/url_launcher/url_launcher_windows/CHANGELOG.md b/packages/url_launcher/url_launcher_windows/CHANGELOG.md index dbe424547171..a1998c92e2e2 100644 --- a/packages/url_launcher/url_launcher_windows/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_windows/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.1.0-nullsafety.2 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 0.1.0-nullsafety.1 diff --git a/packages/video_player/video_player/CHANGELOG.md b/packages/video_player/video_player/CHANGELOG.md index 3346db03bd55..f9bae8dee6e1 100644 --- a/packages/video_player/video_player/CHANGELOG.md +++ b/packages/video_player/video_player/CHANGELOG.md @@ -1,6 +1,6 @@ ## 2.0.0-nullsafety.7 -* Update the example app: remove the depreciated `RaisedButton` and `FlatButton` widgets. +* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets. ## 2.0.0-nullsafety.6