parent
650f1ac8e4
commit
0a3ec830a3
3 changed files with 43 additions and 27 deletions
|
|
@ -1,11 +1,15 @@
|
|||
import "package:material_ui/material_ui.dart";
|
||||
|
||||
class const Loading({super.key, final double? height}) extends StatelessWidget {
|
||||
class const Loading({super.key, final double? dimension})
|
||||
extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) => Center(
|
||||
child: Padding(
|
||||
padding: .all(16),
|
||||
child: SizedBox(height: height, child: CircularProgressIndicator()),
|
||||
child: SizedBox.square(
|
||||
dimension: dimension,
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue