Orientação gerada a partir de informações públicas. Apenas para referência.
InputSheet é um pacote Flutter projetado para aprimorar as experiências de entrada de formulários apresentando os campos em uma BottomSheet, melhorando a usabilidade em aplicativos com formulários extensos. Ele oferece uma interface limpa e intuitiva que se adapta a diferentes tipos de entrada, garantindo uma experiência suave em dispositivos móveis. A abordagem da BottomSheet mantém o formulário acessível sem encher a tela principal, tornando-se ideal para aplicações com grande volume de dados. Integra-se perfeitamente a projetos Flutter existentes e suporta princípios de design responsivo.
Casos de uso
Entrada de dados em formato longo
Interfaces de formulário com foco em dispositivos móveis
Reduzindo o acúmulo de tela
Melhorando a acessibilidade de entrada
Melhorando o engajamento do usuário com formulários
Principais recursos
Layout de entrada baseado em BottomSheet
Suporte para vários tipos de entrada
Integração fácil com formulários do Flutter
Design responsivo e adaptativo
Aparência e comportamento personalizáveis
Indicado para
Desenvolvedores de aplicativos móveis
aplicações com muitos formulários
Design de UI centrado em experiência do usuário
Desenvolvimento consciente de acessibilidade
Aplicativos que exigem fluxos de trabalho de entrada simplificados
Considerações
Limitado a plataformas móveis
Requer manipulação manual do estado do formulário
Pode ser necessário estilização adicional para layouts complexos
Depende do widget BottomSheet do Flutter
Não adequado para uso em desktop ou web
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
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.