build method
- @override
This method is called everything when there is a need to redraw the InfoListItem on the screen.
Implementation
@override
Widget build(BuildContext context) {
// It is quite possible, that this widget is wrapped within another widget,
// say padding, in that case, to make the holder and its components fit the
// screen automatically, it is wrapped within a FittedBox.
return FittedBox(
fit: BoxFit.contain,
// SafeArea is used because of the thin bezels problem on the IOS device.
child: SafeArea(
child: _holder(context),
),
);
}