Skip to content

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

License

Notifications You must be signed in to change notification settings

agryva/Somedialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages