FLUTTER ECOSYSTEM

riccardoratta/platform_alert_dialog

현재 플랫폼에 맞춰진 알림 대화 상자를 빌드하기 위한 Flutter 플러그인입니다.

platform_alert_dialog 프로젝트 이미지
Stars
5
Forks
5
최근 푸시(UTC)
2020. 9. 29.
프로젝트 상태
보관됨
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