part of 'home_page.dart'; class _HomePageSpinner extends StatelessWidget { const _HomePageSpinner(); @override Widget build(BuildContext context) { return BlocBuilder( builder: (context, state) => Align( alignment: state.data?.data?.isEmpty ?? true ? Alignment.topCenter : Alignment.bottomCenter, child: Visibility( visible: state.isLoading, child: const Padding( padding: EdgeInsets.only(bottom: 32, top: 16), child: CircularProgressIndicator(), ), ), ), ); } }