Package selection guidance compiled from public package information, community data, and project usage.
InputSheet is a Flutter package designed to enhance form input experiences by presenting inputs in a BottomSheet, improving usability for apps with extensive forms. It provides a clean, intuitive interface that adapts to different input types, ensuring a smooth user experience on mobile devices. The BottomSheet approach keeps the form accessible without cluttering the main screen, making it ideal for data-heavy applications. It integrates seamlessly with existing Flutter projects and supports responsive design principles.
Use cases
Long form data entry
Mobile-first form interfaces
Reducing screen clutter
Enhancing input accessibility
Improving user engagement with forms
Key features
BottomSheet-based input layout
Support for multiple input types
Easy integration with Flutter forms
Responsive and adaptive design
Customizable appearance and behavior
Suitable for
Mobile app developers
Form-heavy applications
UX-focused UI design
Accessibility-conscious development
Apps requiring streamlined input workflows
Considerations
Limited to mobile platforms
Requires manual handling of form state
May need additional styling for complex layouts
Depends on Flutter's BottomSheet widget
Not suitable for desktop or web use
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
flutter-input-sheet
A pack of input types implemented as a sheet! 🚀
Overview
flutter-input-sheet is a package that shows inputs on sheets.
It was created with the purpose of make simple and pleasant extensive forms. You can create custom components to present your data and edit them in sheets for each one.
It was developed by abstracting and implementing great packages in pub.dev to create a single and simple pack for forms.
Installation
add this line to pubspec.yaml
input_sheet:<latest_version>
Dependencies
Also, this package uses some other libraries that need to be imported in your project to work, this libraries is used in some input types that need constants informed at params.
You will need to add permissions in your Info.plist to use camera and microphone once the package has an input for photos and videos
<key>NSCameraUsageDescription</key><string>Can I use the camera please?</string><key>NSMicrophoneUsageDescription</key><string>Can I use the mic please?</string>
Android
You will need to add permissions in your AndroidManifest.xml to read and write external storage and manage the camera once the package has an input for photos and videos
InputSheet(
//InputSheet implements the scope information of sheet
context,
label: "Name",
cancelText: "Cancel",
doneText: "Confirm",
).text(
//.text or any other option available type implemets the input type
placeholder: "Type here...",
value: _name,
onDone: (dynamic value) => setState(() {
_name = value;
}),
);
Callback function called when done ediding input text
Mask
This input uses flutter_masked_text package to manage the mask patterns and switch from pattern to pattern according the value length, see the package to learn about this patterns.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.