36 lines
809 B
Dart
36 lines
809 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class MyCircularProgressIndicator extends StatelessWidget {
|
|
final Color backgroundColor;
|
|
|
|
const MyCircularProgressIndicator({
|
|
super.key,
|
|
this.backgroundColor = Colors.transparent,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: Container(
|
|
width: 140,
|
|
height: 140,
|
|
decoration: BoxDecoration(
|
|
color: backgroundColor,
|
|
shape: BoxShape.circle,
|
|
),
|
|
child: Stack(
|
|
children: [
|
|
const Center(child: CircularProgressIndicator()),
|
|
Image.asset(
|
|
'assets/images/logo.gif',
|
|
width: 140,
|
|
height: 140,
|
|
fit: BoxFit.contain,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|