diff --git a/lib/ui/widgets/loading_box.dart b/lib/ui/widgets/loading_box.dart index 8e8132c46a18e3c2c9fc2b90453c5478abd439ce..bd5ad124aa2e1875dcf101f2e5e0c867130ee957 100644 --- a/lib/ui/widgets/loading_box.dart +++ b/lib/ui/widgets/loading_box.dart @@ -1,18 +1,31 @@ import 'package:flutter/material.dart'; +class LoadingWidget extends StatelessWidget { + const LoadingWidget({super.key}); + + @override + Widget build(BuildContext context) { + return const SizedBox( + width: 100.0, + height: 100.0, + child: Center( + child: CircularProgressIndicator(), + )); + } +} + class LoadingBox extends StatelessWidget { - const LoadingBox({super.key}); + const LoadingBox({super.key, required this.simple}); + + final bool simple; @override Widget build(BuildContext context) { - return const Expanded( - child: SizedBox( - width: 100.0, - height: 100.0, - child: Center( - child: CircularProgressIndicator(), - )), - ); + return simple + ? const LoadingWidget() + : const Expanded( + child: LoadingWidget(), + ); } }