ezaldeen99 / material_dialogs Goto Github PK
View Code? Open in Web Editor NEWA Flutter library aims to help you create animated, simple, and stylish Material Dialogs in your app.
License: Apache License 2.0
A Flutter library aims to help you create animated, simple, and stylish Material Dialogs in your app.
License: Apache License 2.0
It would be nice if the position of customView
could be customizable.
Now the customView
is always on the top of the title.
Sometimes it could be useful to have it in between of title
and msg
or below msg
.
Hi @Ezaldeen99,
Thank you for creating & maintaining this package.
I want to work with input (Like TextFormField), but when soft keyboard is shown, it hide the input completely.
I just want to know is there anyway to implement this at the moment?
Using corlor property (Dialogs.materialDialog), dialog background color is not working, add surfaceTintColor property to solve.
Dialog( backgroundColor: Colors.white, surfaceTintColor: Colors.transparent)
#26 On Material 3, dialog background color as white is not working
i tried the default CupertinoAlertDialog
and was just working fine but when i switched to material_dialogs
package then neither Navigator.pop(context)
nor Navigator.of(context).pop
did work, it pops into the previous page
instead of vanishing the dialog
!
edit1:
The relevant error-causing widget was: MaterialApp MaterialApp:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_no_internet_wi dget-0.0.9+17/lib/src/flutter_no_internet_widget.dart:71:12
Hi,
Would it be possible to add stateful vesions of the dialogs?
Allowing to setState from one of the dialog buttons to for instance change the title or msg used for the dialog.
Greetings,
R.
Dialogs.materialDialog
has a type parameter of String
which can be inconvenient when you want the future to return values of other types. Could this fixed type parameter be removed or replaced with a generic type T
?
how to close the modal? on my cancel button doesn't close the modal
am getting an error while trying to use "animation: "
can't put image? or input?
Hi,
Dialogs.materialDialog() works, but Dialogs.bottomMaterialDialog() doesn't.
It produces this stacktrace:
The following NoSuchMethodError was thrown building BottomSheet(dirty, dependencies: [_InheritedTheme, _LocalizationsScope-[GlobalKey#e7ba0]], state: _BottomSheetState#a43c6):
The method '>' was called on null.
Receiver: null
Tried calling: >(0)
The relevant error-causing widget was
MaterialApp
lib\main.dart:12
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 new FrameRate
package:lottie/src/frame_rate.dart:7
#2 Dialogs.bottomMaterialDialog.
package:material_dialogs/material_dialogs.dart:111
#3 _BottomSheetState.build
package:flutter/โฆ/material/bottom_sheet.dart:266
#4 StatefulElement.build
package:flutter/โฆ/widgets/framework.dart:4744
...
Any help would be appreciated :)
Greetings,
R.
Please add barrier dismissible so that person can hold the dialog
You discard the inner context of showDialog->DialogRoute.
So, when you set useRootNavigator=true, Strange things are going to happen.
Such as Navigator.of(context).pop() cannot pop dialog, but caused the overwritten page pop.
Please update the package by updating the Lottie.
The customView
parameter was working in version 1.0.0
, but it's not working anymore in version 1.1.0
.
The custom view is simply not showed.
Is it possible to add an onClose
callback?
Thanks!
can I update values on dialog using setState ?
Hi there, if I enabled material 3 on android, then the bg color of the dialog is not working for white but other colors are working.
What could be the reason?
While this may not be a major issue to document, is it possible to change the size of the animation provided from a json file?
Thanks!
i got it
Hi,
Currently opening a materialDialog from a bottomMaterialDialog causes the bottomMaterialDialog to persist. Meaning that two taps are required to exit from both dialogs back to the main screen.
Seems like a method to close a dialog programmatically would help circumvent this problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.