gits_pop_up

Last updated:

0 purchases

gits_pop_up Image
gits_pop_up Images
Add to Cart

Description:

gits pop up

GistPopUp #
GistPopUp is Flutter pop-up library with Gits UI Style. This library inspired from Bot Toast.
Features #

✅ Notification bar
❌ Loading
❌ Text toast

Usage #
Setup #
Initialize the library on your MaterialApp
return MaterialApp(
title: 'Your application',
theme: ThemeData(),
home: const HomePage(),
builder: (context, child) {
return gitsPopUpInit(context, child);
},
navigatorObservers: [GitsPopUpNavigatorObserver()],
);
copied to clipboard
Custom Settings #
You can override the default setting with GitsPopUpSettings
return MaterialApp(
title: 'Your application',
theme: ThemeData(),
home: const HomePage(),
builder: (context, child) {
GitsPopUpSettings(
blackColor: const Color(0xFF000000),
whiteColor: const Color(0xFFFFFFFF),
successColor: const Color(0xFFFFFFFF),
successBackgroundColor: const Color(0xFFFFFFFF));
return gitsPopUpInit(context, child);
},
navigatorObservers: [GitsPopUpNavigatorObserver()],
);
copied to clipboard
Notification Bar #
Default notification :



GitsPopUp.showNotif(
title: "Title",
);
copied to clipboard
Success notification :



GitsPopUp.showSuccessNotif(
title: "Title Success",
subtitle: "Subtitle Success", // Optional
);
copied to clipboard
Info notification :



GitsPopUp.showInfoNotif(
title: "Title Info",
subtitle: "Subtitle Info", // Optional
);
copied to clipboard
Warning notification :



GitsPopUp.showWarningNotif(
title: "Title Warning",
subtitle: "Subtitle Warning", // Optional
);
copied to clipboard
Danger notification :



GitsPopUp.showDangerNotif(
title: "Title Danger",
subtitle: "Subtitle Danger", // Optional
);
copied to clipboard
Hide leading and trailing widget :



GitsPopUp.showDangerNotif(
title: "Test Danger",
subtitle: "Subtitle Danger",
showLeading: false,
showTrailing: false)
);
copied to clipboard
Custom notification :
GitsPopUp.showCustomNotif(
gitsPopUpBuilder: (cancelFunction) => YourCustomWidget(),
);
copied to clipboard
General Attributes #



Attribute
Type
Default
Required
Description




crossPage
bool
true
No
The pop up bar by default is shown on the whole page, when set to false, it will automatically close when you navigate to another page


onlyOne
bool
true
No
by default only one pop up appears, if you want to stack the pop up then change it to false

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.