Files
tripz/lib/views/widgets/mycircular.dart
Hamza-Ayed 213c2724aa 11/9/1
2024-11-09 10:49:04 +02:00

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,
),
],
),
),
);
}
}