Skip to content

Commit ac69783

Browse files
committed
function inlined [nfc]: _materialDialogActionText made inline in _adaptiveAction
1 parent 5d20281 commit ac69783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/dialog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Widget _adaptiveAction({required VoidCallback onPressed, required String text})
2424
case TargetPlatform.fuchsia:
2525
case TargetPlatform.linux:
2626
case TargetPlatform.windows:
27-
return TextButton(onPressed: onPressed, child: _materialDialogActionText(text));
27+
return TextButton(onPressed: onPressed, child: Text(text, textAlign: TextAlign.end));
2828
case TargetPlatform.iOS:
2929
case TargetPlatform.macOS:
3030
return CupertinoDialogAction(onPressed: onPressed, child: Text(text));

0 commit comments

Comments
 (0)