ДС
Size: a a a
ДС
N
KK
K
AA
AA
ДС
ЕБ
KK
GV
KK
KK
AD
N
AD
AnimatedSize
почему то работает в одну стороу))AD
AD
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,
),
),
);
}
}
AD
A
AD