AD
Size: a a a
AD
AK
KK
KK
GA
class StateButtonState extends State<StateButton> with TickerProviderStateMixin {
@override
Widget build(BuildContext context) {
return AnimatedSize(
duration: Duration(milliseconds: 200),
vsync: this,
curve: Curves.
easeIn,
child: SizedBox(
height: 50,
width: widget.loading ? null : double.
infinity,
child: RaisedButton(
shape: new RoundedRectangleBorder(borderRadius: BorderRadius.circular(30)),
child: widget.loading
? CircularProgressIndicator(backgroundColor: Theme.
of(context).primaryColor,)
: Text('Войти', style: TextStyle(fontSize: 18),),
onPressed: widget.onPressed,
),
),
);
}
}
KK
AD
AD
KK
AD
AD
KK
KK
P
AD
KK
P
P
P