Orientação gerada a partir de informações públicas. Apenas para referência.
loading_btn é um pacote Flutter que fornece um botão de carregamento animado com estilos e comportamentos personalizáveis. Permite que desenvolvedores criem botões visualmente atraentes que transicionam suavemente entre os estados normais e de carregamento, ideais para formulários ou ações que exigem feedback do usuário. Com opções extensas de personalização para cores, formas, animações e texto, ele melhora a experiência do usuário em todas as plataformas. O pacote suporta todas as principais plataformas Flutter, tornando-o versátil para aplicativos multiplataforma.
Casos de uso
Envio de formulários
Fluxos de autenticação do usuário
Ações de busca de dados
Elementos de interface do usuário interativos
indicadores de estado de carregamento
Principais recursos
Duração de animação personalizável
Suporte a vários estilos de carregamento
Cores e formas de botão configuráveis
Suporte a design responsivo
Integração fácil com widgets existentes
Compatibilidade multiplataforma
Indicado para
Desenvolvedores de aplicativos interativos
Implementações de UI centradas no design
Aplicativos que precisam de feedback claro de carregamento
Equipes que priorizam a experiência do usuário
Projetos com interações frequentes de formulários
Considerações
Pode exigir estilos adicionais para designs complexos
Impacto no desempenho com muitas instâncias
Tratamento de erro embutido limitado
Dependente de bibliotecas externas de animação
Não adequado para casos de uso de botão não interativo
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
Loading Btn
Create animated loading button using loading_btn package with lots of properties.
Getting started
Loading Btn package helps you create beautiful loading animation in your buttons with customized
loader. Loading Btn is basically an ElevatedButton widget that means you can use the usual
parameters with a few extra functionalities.
animate(Default false) : It uses width to animate while click on button
roundLoadingShape(Default true) : It uses borderRadius to creates a round button while in Busy/Loading state
width : Width of the button when in Idle state
minWidth : Width of the button when in Busy/Loading state. Default value is equal to height in order to create a completely round loading button
borderRadius : Border Radius of the button
borderSide : BorderSide in order to give border color and width to the button
child : Contents of button when in Idle state
loader : Contents of button when in Busy/Loading state
onTap : (startLoading, stopLoading, btnState) : Function that is called when you click on the button
duration : Duration of the animation
curve : Curve of animation
reverseCurve : Curve of reverse animation
MIT License
Copyright (c) 2022 Yasin Mohammadi
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.