2021-08-23 07:59:30 +03:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:info_tren/components/loading/loading.dart';
|
|
|
|
|
|
|
|
class LoadingCupertino extends LoadingCommon {
|
2022-10-31 01:49:11 +01:00
|
|
|
const LoadingCupertino({required super.text, super.key,});
|
2021-08-23 07:59:30 +03:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Center(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
2022-10-31 01:30:29 +01:00
|
|
|
const Padding(
|
|
|
|
padding: EdgeInsets.all(8.0),
|
2021-08-23 07:59:30 +03:00
|
|
|
child: CupertinoActivityIndicator(),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
child: Text(text),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|