File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1- import 'dart:io' ;
2-
31import 'package:enough_platform_widgets/enough_platform_widgets.dart' ;
42import 'package:flutter/cupertino.dart' ;
53import 'package:flutter/material.dart' ;
@@ -24,7 +22,7 @@ class DialogHelper {
2422 bool isDangerousAction = false ,
2523 String ? cancelActionText,
2624 }) {
27- if (Platform .isIOS || Platform .isMacOS ) {
25+ if (PlatformInfo .isCupertino ) {
2826 return showCupertinoDialog <bool >(
2927 builder: (context) => CupertinoAlertDialog (
3028 title: Text (title),
@@ -131,7 +129,7 @@ class DialogHelper {
131129 ),
132130 },
133131 ];
134- if (Platform .isIOS || Platform .isMacOS ) {
132+ if (PlatformInfo .isCupertino ) {
135133 return showCupertinoDialog (
136134 context: context,
137135 builder: (context) => CupertinoAlertDialog (
You can’t perform that action at this time.
0 commit comments