Skip to content
Snippets Groups Projects
Commit 0d5fdad7 authored by vjrj's avatar vjrj
Browse files

Fix Expand error

parent 0031878f
No related branches found
No related tags found
No related merge requests found
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(),
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment