build method
Implementation
@override
Widget build(BuildContext context, WidgetBuilderViewModel viewModel) {
return Container(
color: Colors.white,
child: Align(
alignment: Alignment.center,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
Container(
height: 104,
child: Center(
child: TweenAnimationBuilder(
duration: Duration(seconds: 3),
tween: SizeTween(
begin: Size(65, 65), end: viewModel.newSize),
curve: Curves.bounceIn,
onEnd: () {
viewModel.setNewSize(viewModel.newSize == Size(95, 95)
? Size(65, 65)
: Size(95, 95));
},
builder: (_, Size? size, child) {
//Utils.log.d(size);
return Container(
width: size?.width,
height: size?.height,
child: child,
);
},
child: imageFromBase64String(),
),
)),
RichText(
text: new TextSpan(
style: new TextStyle(
fontSize: 18.0,
),
children: <TextSpan>[
new TextSpan(
text: 'Chargement',
style: new TextStyle(
fontWeight: FontWeight.bold, color: Colors.black)),
new TextSpan(
text: '...',
style: new TextStyle(
fontWeight: FontWeight.bold, color: Colors.black54)),
],
)),
],
),
));
}