ritagroup / gsform Goto Github PK
View Code? Open in Web Editor NEWFlutter form maker
License: Apache License 2.0
Flutter form maker
License: Apache License 2.0
When using the parameter required
on GSField.checkList
, it will only enforce one check mark to be checked. Is there an option to request that all are checked?
GSField.checkList(
required: true,
items: [
...
],
callBack: (CheckDataModel value) {},
),
The best case would be if there is a required
parameter on CheckDataModel
, so i can set each Checkbox that should be required.
When using long texts in GSField.checkList
widget, it will cause
A RenderFlex overflowed by x pixels on the right.
Simply wrapping and making the checkbox field bigger would be awesome. Otherwise longer texts such as Term agreements cannot be displayed on the mobile version.
my code is largely based on the example
late GSForm form;
...
child: form = GSForm.singleSection(
...
I use riverpod for state management. Everytime I use the built in flutter showSearch(). My form is reset.
I would like to capture the form's field's values as they are updated to save their state and restore them once the showSearch() is returned
I am getting an error during build:
/C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.dev/persian_datetime_picker-2.5.0/lib/src/pdate_picker_deprecated.dart:268:33: Error: The getter 'accentTextTheme' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/C:/tools/flutter/packages/flutter/lib/src/material/theme_data.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentTextTheme'.
itemStyle = themeData.accentTextTheme.bodyText1;
it seems that there is issue in dependence, but how to solve it?
I am trying to get the value of the spinner widget. Unfortunately, I will only get the Instance of 'SpinnerDataModel'
in my json.
GSField.spinner(
title: 'What do you want to contact us about?',
hint: 'Select a reason',
tag: 'feedbackType',
required: true,
weight: 12,
items: FeedbackType.values // this is a normal enum
.map((e) => SpinnerDataModel(
data: e.name, // I am guessing this is used to transfer the data?
name: e.name.capitalizeFirstOfEach,
id: 1,
))
.toList(),
),
Maybe I am using the widget wrongly, but as I can not use the value
parameter I don't really know why I am only getting the instance of the class....Any help is appreciated.
hello i am using GSFORM dropdownlist
i get this error when using 2 GSField.spinner
Either zero or 2 or more [DropdownMenuItem]s were detected with the same value
'package:flutter/src/material/dropdown.dart':
dropdown.dart:1
Failed assertion: line 890 pos 15: 'items == null || items.isEmpty || value == null ||
items.where((DropdownMenuItem item) {
return item.value == value;
}).length == 1'
Hello
i am using gsform Flutter , when the date is select i can run a callback Function or when submit form i cant get the date seletected
Helps --¨?
There seems to be no way to read the value of the forms without onSubmit(), which annoyingly resets the form
while adding multi image in the web, this error is shown...
GSField.email(
tag: 'email',
title: getTranslated('login_hint', context)!,
weight: 12,
required: true,
maxLength: 100,
prefixWidget:const Icon(FontAwesomeIcons.envelope,size: 15,),
errorMessage: getTranslated('invalid_email', context)!,
),
whatever I type, even if I type my email account, the validation always returns an error.
Hi there,
When using GSField.imagePicker my app crashes after I press either the 'Camera' or the 'Gallery' button on the bottom sheet that pops up. Implementation is below:
GSField.imagePicker(tag: 'image_upload', iconWidget: const Icon(Icons.camera_alt_outlined))
Do I need to request permissions or something like that before this will work? The exception I get is
════════ Exception caught by image resource service ════════════════════════════
Exception: Invalid image data
Hi there,
i can't find any change font size method in documentation.
May i know how to change font's size of title?
Example i want increase the font size "Amount"?
GSField.price(
tag: 'product_amount',
title: 'Amount',
weight: 12,
hint: '20000',
required: true,
currencyName: "$",
errorMessage: 'Please enter an amount',
)
When I save a form the form is pre-rendered with the saved valued. (The reason for this is that the object used to initialise the form is a stream object. So a change to the object and a change to the entire form ) For the date picker field, it goes blank and if you select the field the picker gives an error stating "Field 'gregorianInitialDate' has not been initialized" .
GSField.datePicker( tag: "surveyExpiry", title: "Survey Expiry", initialDate: toGSDate(vessel?.surveyExpiry), calendarType: GSCalendarType.gregorian,),
`GSDate toGSDate(DateTime? value) {
value ??= DateTime.now();
return GSDate(year: value!.year, month: value!.month, day: value!.day);
}`
comment: the attributes (initialDate, availableFrom, availableTo) should be initialised in GSDatePickerField not _GSDatePickerFieldState. This change would allow the values to be changed dynamically.
Settings required=true
on an email field will always fail validation
GSField.email(required: true,tag: "email",)
First of all, I love this package! It's way better than all the other packages that can be found on fluttergems.dev.
One thing that I am missing though is to better input text. Right now I can only use textPlain' or
text`, but both widgets can only write in one line, which makes it very hard to write longer texts.
I am looking for support, where the long text can be scrolled vertically and the text box resizes to a certain max height.
In the best case, there will be support for both web and mobile, while the web has this little arrow in the right bottom corner to resize the textbox (like often seen in web boxes or also on GitHub).
GSField.textPlain(
...
weight: 12,
maxLength: 500,
maxLine: 30, // As we can only use one line this parameter is currently not useful at all
showCounter: true,
),
Although this package is already superior, this might be a major update!
Great plugin, but unfortunately without web support. Have to move on to another plugin, as the app is expanding to cross-platform :(
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.