git-touch-android-ios-app/lib/widgets/loading.dart

22 lines
479 B
Dart
Raw Normal View History

2019-01-31 08:23:52 +01:00
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
class Loading extends StatelessWidget {
final bool more;
Loading({this.more = false});
2019-01-31 08:23:52 +01:00
@override
Widget build(BuildContext context) {
2019-09-29 16:10:15 +02:00
return Center(
child: Padding(
padding: EdgeInsets.symmetric(vertical: more ? 20 : 100),
2019-12-21 09:16:17 +01:00
child: SizedBox(
width: 24,
height: 24,
child: CircularProgressIndicator(),
),
2019-09-29 16:10:15 +02:00
),
);
2019-01-31 08:23:52 +01:00
}
}