| 12345678910111213141516171819202122232425262728 |
- import 'package:flutter/material.dart';
-
- class LoadingIndicator extends StatelessWidget {
- final double size;
- final Color color;
- final double strokeWidth;
-
- const LoadingIndicator({
- super.key,
- this.size = 40,
- this.color = Colors.blue,
- this.strokeWidth = 3,
- });
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: SizedBox(
- width: size,
- height: size,
- child: CircularProgressIndicator(
- valueColor: AlwaysStoppedAnimation<Color>(color),
- strokeWidth: strokeWidth,
- ),
- ),
- );
- }
- }
|