|
|
@ -19,7 +19,8 @@ class AssetsLoadingPage extends StatelessWidget {
|
|
|
|
final headline1 = Theme.of(context).textTheme.headline1;
|
|
|
|
final headline1 = Theme.of(context).textTheme.headline1;
|
|
|
|
return BlocBuilder<AssetsManagerCubit, AssetsManagerState>(
|
|
|
|
return BlocBuilder<AssetsManagerCubit, AssetsManagerState>(
|
|
|
|
builder: (context, state) {
|
|
|
|
builder: (context, state) {
|
|
|
|
return Container(
|
|
|
|
return SingleChildScrollView(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
decoration: const CrtBackground(),
|
|
|
|
decoration: const CrtBackground(),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
@ -42,11 +43,24 @@ class AssetsLoadingPage extends StatelessWidget {
|
|
|
|
if (state.error != null)
|
|
|
|
if (state.error != null)
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
state.error!,
|
|
|
|
state.error!,
|
|
|
|
style: Theme.of(context).textTheme.headline4,
|
|
|
|
style: Theme.of(context)
|
|
|
|
|
|
|
|
.textTheme
|
|
|
|
|
|
|
|
.headline4!
|
|
|
|
|
|
|
|
.copyWith(color: PinballColors.red),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
...state.loaded.map(
|
|
|
|
|
|
|
|
(e) => Text(
|
|
|
|
|
|
|
|
e.toString(),
|
|
|
|
|
|
|
|
style: Theme.of(context)
|
|
|
|
|
|
|
|
.textTheme
|
|
|
|
|
|
|
|
.headline4!
|
|
|
|
|
|
|
|
.copyWith(color: PinballColors.white),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|
|
|
|
);
|
|
|
|