From c78578417da2cfa9df7e5517cdb57659fcd19b14 Mon Sep 17 00:00:00 2001 From: Darren Austin Date: Thu, 16 Jul 2020 11:21:04 -0700 Subject: [PATCH] Updated date pickers to use the new TextButton in place of FlatButton. (#61489) --- .../lib/src/material/pickers/date_picker_dialog.dart | 6 +++--- .../src/material/pickers/date_range_picker_dialog.dart | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/flutter/lib/src/material/pickers/date_picker_dialog.dart b/packages/flutter/lib/src/material/pickers/date_picker_dialog.dart index 7c50811887..962eedf7db 100644 --- a/packages/flutter/lib/src/material/pickers/date_picker_dialog.dart +++ b/packages/flutter/lib/src/material/pickers/date_picker_dialog.dart @@ -14,9 +14,9 @@ import '../button_theme.dart'; import '../color_scheme.dart'; import '../debug.dart'; import '../dialog.dart'; -import '../flat_button.dart'; import '../icons.dart'; import '../material_localizations.dart'; +import '../text_button.dart'; import '../text_theme.dart'; import '../theme.dart'; @@ -387,11 +387,11 @@ class _DatePickerDialogState extends State<_DatePickerDialog> { buttonTextTheme: ButtonTextTheme.primary, layoutBehavior: ButtonBarLayoutBehavior.constrained, children: [ - FlatButton( + TextButton( child: Text(widget.cancelText ?? localizations.cancelButtonLabel), onPressed: _handleCancel, ), - FlatButton( + TextButton( child: Text(widget.confirmText ?? localizations.okButtonLabel), onPressed: _handleOk, ), diff --git a/packages/flutter/lib/src/material/pickers/date_range_picker_dialog.dart b/packages/flutter/lib/src/material/pickers/date_range_picker_dialog.dart index ca7c511182..f8748e7fb0 100644 --- a/packages/flutter/lib/src/material/pickers/date_range_picker_dialog.dart +++ b/packages/flutter/lib/src/material/pickers/date_range_picker_dialog.dart @@ -18,11 +18,11 @@ import '../color_scheme.dart'; import '../debug.dart'; import '../dialog.dart'; import '../dialog_theme.dart'; -import '../flat_button.dart'; import '../icon_button.dart'; import '../icons.dart'; import '../material_localizations.dart'; import '../scaffold.dart'; +import '../text_button.dart'; import '../text_theme.dart'; import '../theme.dart'; @@ -512,7 +512,7 @@ class _CalendarRangePickerDialog extends StatelessWidget { if (orientation == Orientation.landscape) entryModeIcon, ButtonTheme( minWidth: 64, - child: FlatButton( + child: TextButton( onPressed: onConfirm, child: Text(confirmText, style: saveButtonStyle), ), @@ -659,11 +659,11 @@ class _InputDateRangePickerDialog extends StatelessWidget { buttonTextTheme: ButtonTextTheme.primary, layoutBehavior: ButtonBarLayoutBehavior.constrained, children: [ - FlatButton( + TextButton( child: Text(cancelText ?? localizations.cancelButtonLabel), onPressed: onCancel, ), - FlatButton( + TextButton( child: Text(confirmText ?? localizations.okButtonLabel), onPressed: onConfirm, ),