formless 0.1.8
formless: ^0.1.8 copied to clipboard
A Flutter package that turns any list of fields into an AI-powered conversational form. Validates answers via Groq, OpenAI, Gemini, or DeepSeek and returns a clean key->value map when all fields are collected.
Changelog #
0.1.8 #
- Custom options sheet:
Formless/ChatLayoutaccept optionaloptionsSheetPresenter(FormlessOptionsSheetPresenter). UseFormlessOptionsSheetArgs(options, title,questionKey,theme,select) to build your own modal, or callshowDefaultFormlessOptionPickerSheet/showOptionsSearchSheetto wrap the built-in UI. Exported frompackage:formless/formless.dart. - Default searchable sheet restyled to match the rest of the chat UI (pill search field like the input bar, chip-like option rows with accent border, drag handle, surface background,
FormlessThemeintegration). - Fix: Editing an answer chosen from
optionsafter earlier retries on the same step no longer pointed at the wrong question (options chips/sheet missing). Each user bubble storesAnswersModel.questionIndexfor correct rollback.
0.1.7 #
- Long
optionslists (e.g. countries): automatic searchable bottom sheet when there are more than 12 choices (configurable viaoptionsChipMaxCount). AddedQuestionOptionsPresentation,optionsSheetTitle, andoptions_search_sheetUX.
0.1.6 #
- Added optional
QuestionsModel.optionsfor multiple-choice questions: centered chips under the question; bottom text field stays visible but disabled with a hint; values are sent to the AI with matching prompt rules.
0.1.5 #
- Chat UX after completion: input stays disabled and user bubbles remain right-aligned (no layout shift).
0.1.4 #
- Resolved static analysis issues (
comment_references,prefer_single_quotes) so pub.dev can complete package analysis successfully.
0.1.3 #
- After all questions are answered, the chat input and send button are disabled so users cannot send more messages (editing previous answers is also disabled).
- Keep user message bubbles right-aligned when the form is complete (they no longer jump to the left).
- Added optional
onErrorcallback onFormless/ChatLayoutso host apps can log or surface validation and API failures. - Documented
QuestionsModel.onValidate(post-AI checks such as nickname availability) in README, API table, and dartdocs. - Exclude local
build/from the published tarball via.pubignore. - Version bump for pub.dev publication.
0.1.2 #
- Updated demo GIF.
0.1.1 #
- Added
backgroundColorparameter toFormlessfor background color control. - Added
unexpectedErrorMessageparameter to customize the error banner text. - API and network errors now show a dismissible banner instead of a chat bubble.
- User's message is automatically restored in the input field after an API error.
- Added demo GIF to README.
0.1.0 #
- Initial release.
- Conversational chat UI that collects form fields one at a time.
- Supports Groq, OpenAI, Gemini, and DeepSeek as AI providers.
- Per-field validation via LLM with custom
validationMessageoverride. FormlessThemefor full color and input field customization.- Optional
modelparameter to override the provider's default model. - Long-press any sent answer to edit it and roll back the conversation.
- Automatic JSON retry and 429 rate-limit backoff.