1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-25 07:13:57 +01:00
git-touch-android-ios-app/lib/widgets/loading.dart
2019-12-21 16:16:17 +08:00

24 lines
566 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:git_touch/models/theme.dart';
import 'package:provider/provider.dart';
class Loading extends StatelessWidget {
final bool more;
Loading({this.more = false});
@override
Widget build(BuildContext context) {
return Center(
child: Padding(
padding: EdgeInsets.symmetric(vertical: more ? 20 : 100),
child: SizedBox(
width: 24,
height: 24,
child: CircularProgressIndicator(),
),
),
);
}
}