Skip to content

Commit ddf30e0

Browse files
committed
Changed placeholder to hint, More specialized keyboards, New inputs
(Phone, Stepper, Rate, SegmentedControl)
1 parent 60d0a66 commit ddf30e0

File tree

7 files changed

+433
-129
lines changed

7 files changed

+433
-129
lines changed

.idea/libraries/Dart_Packages.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 103 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/main.dart

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MyHomePage extends StatelessWidget {
3333
attribute: "dropdown",
3434
require: true,
3535
label: "Dropdown",
36-
placeholder: "Select Option",
36+
hint: "Select Option",
3737
options: [
3838
FormBuilderInputOption(value: "Option 1"),
3939
FormBuilderInputOption(value: "Option 2"),
@@ -91,12 +91,44 @@ class MyHomePage extends StatelessWidget {
9191
FormBuilderInput.slider(
9292
label: "Slider",
9393
attribute: "slider",
94+
hint: "Hint",
9495
min: 0.0,
9596
require: true,
9697
max: 100.0,
9798
value: 10.0,
9899
divisions: 20,
99100
),
101+
FormBuilderInput.stepper(
102+
label: "Stepper",
103+
attribute: "stepper",
104+
value: 10,
105+
step: 1,
106+
hint: "Hint",
107+
),
108+
FormBuilderInput.rate(
109+
label: "Rate",
110+
attribute: "rate",
111+
iconSize: 48.0,
112+
value: 1,
113+
max: 5,
114+
hint: "Hint",
115+
),
116+
FormBuilderInput.segmentedControl(
117+
label: "Movie Rating (Archer)",
118+
attribute: "movie_rating",
119+
require: true,
120+
options: [
121+
FormBuilderInputOption(value: 1,),
122+
FormBuilderInputOption(value: 2,),
123+
FormBuilderInputOption(value: 3,),
124+
FormBuilderInputOption(value: 4,),
125+
FormBuilderInputOption(value: 5,),
126+
FormBuilderInputOption(value: 6,),
127+
FormBuilderInputOption(value: 7,),
128+
FormBuilderInputOption(value: 8,),
129+
FormBuilderInputOption(value: 9,),
130+
FormBuilderInputOption(value: 10,),
131+
]),
100132
],
101133
onChanged: () {
102134
print("Form Changed");

0 commit comments

Comments
 (0)