forked from Henry-Hiles/nexus
load replies at render time
This commit is contained in:
parent
c1968c8cc1
commit
62f8e675a4
9 changed files with 208 additions and 124 deletions
|
|
@ -1,13 +1,14 @@
|
|||
import "package:flutter/material.dart";
|
||||
|
||||
class Loading extends StatelessWidget {
|
||||
const Loading({super.key});
|
||||
final double? height;
|
||||
const Loading({this.height, super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => const Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(16),
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
);
|
||||
Widget build(BuildContext context) => Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(16),
|
||||
child: SizedBox(height: height, child: CircularProgressIndicator()),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue