FLUTTER ECOSYSTEM

donguseo/future_progress_dialog

donguseo/future_progress_dialog open-source repository details.

future_progress_dialog 프로젝트 이미지
Stars
5
Forks
3
최근 푸시(UTC)
2022. 12. 2.
프로젝트 상태
활성
Dong-u Seo GitHub avatar
GITHUB User

Dong-u Seo ↗

Republic of Korea
언어DartKotlinSwiftObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

future_progress_dialog

future_progress_dialog is a simple progress dialog library for async tasks. FutureProgressDialog start when you call showDialog function, but dismiss automatically when future task is finished.

Supported Dart Versions

Dart SDK version >= 2.1.0

Installation

Add the Package

dependencies:
  future_progress_dialog: ^0.2.0

How to use

Import the package in your dart file

import 'package:future_progress_dialog/future_progress_dialog.dart';

Call showDialog method with FutureProgressDialog with message.

    showDialog(
      context: context,
      builder: (context) =>
          FutureProgressDialog(getFuture(), message: Text('Loading...')),
    );
https://github.com/donguseo/future_progress_dialog/blob/master/readme_res/future_progress_dialog.png?raw=true

Or you can show it without message.

    await showDialog(
      context: context,
      builder: (context) =>
          FutureProgressDialog(getFuture()),
    );
https://github.com/donguseo/future_progress_dialog/blob/master/readme_res/future_progress_dialog_without_msg.png?raw=true