FLUTTER ECOSYSTEM

riccardoratta/platform_alert_dialog

वर्तमान प्लेटफॉर्म के अनुकूलित चेतावनी डायलॉग बनाने के लिए Flutter प्लगइन।

platform_alert_dialog प्रोजेक्ट कवर
Stars
5
Forks
5
अंतिम पुश (UTC)
29 सित॰ 2020
प्रोजेक्ट स्थिति
आर्काइव
Riccardo Ratta GitHub avatar
GITHUB User

Riccardo Ratta ↗

Italy
भाषाएँDartObjective-CJava

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

Platform Alert Dialog

Flutter plugin for build alert dialogs adapted to the current platform.

showDialog<void>(
  context: context,
  builder: (BuildContext context) {
    return PlatformAlertDialog(
      title: Text('Rewind and remember'),
      content: SingleChildScrollView(
        child: ListBody(
          children: <Widget>[
            Text('You will never be satisfied.'),
            Text('You\’re like me. I’m never satisfied.'),
          ],
        ),
      ),
      actions: <Widget>[
        PlatformDialogAction(
          child: Text('Cancel'),
          onPressed: () {
            Navigator.of(context).pop();
          },
        ),
        PlatformDialogAction(
          child: Text('Regret'),
          actionType: ActionType.Preferred,
          onPressed: () {
            Navigator.of(context).pop();
          },
        ),
      ],
    );
  },
);
Example
Screenshot with theme Android Screenshot with theme iOs
https://raw.githubusercontent.com/riccardoratta/platform_alert_dialog/HEAD/screenshots/alert-android.png https://raw.githubusercontent.com/riccardoratta/platform_alert_dialog/HEAD/screenshots/alert-ios.png