DialogProviderPlus class
prompt, hint, notice, selector, multi_choice, form, status and more.
Theme 自定义,
Dialog 相关
- barrierColor dark and light
- dialogBackground dark and light
- dialogBorderRadius always
- title textStyle
- content textStyle
- foot textStyle
- hint textStyle
Constructors
- DialogProviderPlus(BuildContext context, {bool? dark, String? title, String? okButton, String? cancelButton})
- DialogProviderPlus.login(BuildContext context, {DecorationImage? backgroundImage})
-
固定格式用户名密码弹出框
factory
Properties
- cancelButton → String?
-
final
- context → BuildContext
-
是否强制设置黑夜和白天模式
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maps
↔ Map<
String, Object?> -
返回的数据
getter/setter pair
- okButton → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
final
Methods
-
addCheckBox(
{String? key, Text? label}) → void -
addDivider(
{double? indent, double? endIndent, double vertical = 10.0, Color? color}) → void - 分割线
-
addDropDownButton<
T> ({String? key, List< T> ? values, T? defaultValue, DropMenuItemWidgetBuilder? builder, String? labelText}) → void - 参数
-
addHourMinutesSelector(
{String? key, Widget? title}) → void - 双数字选择,时间和分的选择,返回的数据是由分隔符':'分割的。
-
addText(
Text text, {AlignmentGeometry? alignment}) → void - 添加文本
-
addTextFormField(
{String? key, String? labelText, InputDecoration? inputDecoration, TextInputType? inputType, bool? obscureText}) → void - 添加一个输入框表单项。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBackGroundGradient(
Gradient gradient) → void - 设置渐变背景
-
setBackgroundImage(
DecorationImage? image, {double? opacity, BoxFit? fit}) → void - 设置图片背景
-
show(
BuildContext context) → Future< DialogResult< Map< ?>String, Object?> ?> -
返回结构数据
map key is 'field
0..n' to get data. if not set it in add method -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited