FLUTTER ECOSYSTEM

SoSerious194/simple_update_dialog

SoSerious194/simple_update_dialog open-source repository details.

simple_update_dialog 프로젝트 이미지
Stars
2
Forks
0
최근 푸시(UTC)
2025. 6. 28.
프로젝트 상태
활성
mr.SoSerious GitHub avatar
GITHUB User

mr.SoSerious ↗

Tech Nerd | Blogger | Programmer;

언어C++CMakeDartRubySwiftHTMLCKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개

원본 README

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

README 펼치기 / 접기

simple_update_dialog

A simple package for showing a paltform-specific dialog to promote users to update the app.

Usage

To use this plugin, add simple_update_dialog as a dependency in your pubspec.yaml file.

Screenshots

Screenshot Screenshot
Example
import 'package:flutter/material.dart';
import 'package:simple_update_dialog/simple_update_dialog.dart';

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            SimpleUpdateDialog.showUpdateDialog(
              context: context,
              isForceUpdate: false,
              dialogConfig: DialogConfig(
                appStoreUrl: '',
                playStoreUrl: '',
                currentVersion: '1.0.0',
                latestAndroidVersion: '1.0.1',
                latestIOSVersion: '1.0.1',
                minAndroidAppVerAllowed: '1.0.0',
                minIOSAppVerAllowed: '1.0.0',
              ),
            );
          },
          child: const Text("Show Update Dialog"),
        ),
      ),
    );
  }
}

See the example app for better understanding.