renato_button 1.0.0 copy "renato_button: ^1.0.0" to clipboard
renato_button: ^1.0.0 copied to clipboard

discontinued

A material flutter button that indicates, First load. Second full screen mode.

renato_button #

renato_button:
  git:
    url: https://github.com/Git-RenatoAlcantara/renato_button

Uso
#

Primeiro chamo classe RenatoButton
Passo a cor de fundo do botão
Tamanho total da tela que ao fim o botão ira ocupar Passo texto do botão Passo o estado 1 que será chamado apos o estado de loading.

import 'package:renato_button/renato_button.dart';

RenatoButton(
  color: Colors.purpleAccent,
  progressColor: Colors.purple,
  endHightAnim: MediaQuery.of(context).size.height,
  textButton: Text('My Button'),
  //passando o estado do botão - primeiro estado é o um, ou seja o botão normal junto com o loading
  state: () {
    return 1;
  },
);

Exemplo com streambuilder:

StreamBuilder(
     stream: stateAnim.stream,
     initialData: 0,
     builder: (context, snapshot) {
         return RenatoButton(
          color: Colors.purpleAccent,
          progressColor: Colors.purple,
          //aqui defino o tamanho final que botão deverá ocupar ao fim do carregamento
          endHeghtAnim: MediaQuery.of(context).size.height,
          textButton: Text('My Button'),
          state: () {
            return snapshot.data;
          },
          );
  }),

alt text

0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

A material flutter button that indicates, First load. Second full screen mode.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on renato_button