FLUTTER ECOSYSTEM

agryva/Somedialog

用資源、網路和 Lottie 處理美觀對話框 UI 的 Flutter 套件

某個對話框 專案封面
Stars
18
Forks
10
最近推送(UTC)
2020年7月6日
專案狀態
未封存
Irvan Lutfi Gunawan GitHub avatar
GITHUB User

Irvan Lutfi Gunawan ↗

Fullstack Engineer

Bandung, Indonesia官方網站 ↗
語言DartSwiftKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 5 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

Somedialog

pub package License support

Flutter package for handle a nice dialog ui using assets, netwok, and lottie image

Help Maintenance

I've taken the time to make this library, help support to develop it or buy me coffee and snacks to be even more enthusiastic
Buy Me A Coffee Paypal

https://raw.githubusercontent.com/agryva/Somedialog/master/screen/dialog.jpg
Dialog

Getting Started

Setup

Add dependency to your pubspec.yaml:

somedialog: ^{latest_version}
Basic use

First, add an import to your code:

import 'package:somedialog/somedialog.dart';

FlatButton(
              child: Text("Show Dialog"),
              onPressed: () {
                SomeDialog(
                  context: context,
                  path: "assets/report.json",
                  mode: SomeMode.Lottie,
                  content:
                      "Please before tracking, double-check the code you entered!",
                  title: "Are you sure ?",
                  submit: () {
                  }
                );
              },
            )

SomeMode

SomeMode
Lottie
Network
Asset

Parameters

parameter types defaultValues
buttonConfig buttonConfig ButtonConfig()
path string
title string
content string
dialogHeight double 310
imageHeight double 150
imageWidth double 150
submit Function
mode SomeMode SomeMode.Lottie