add proper logging
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ImLoadingIndicator extends StatelessWidget {
|
||||
const ImLoadingIndicator({super.key, this.dimension, this.strokeWidth});
|
||||
|
||||
/// The size of the indicator with a default of 24
|
||||
final double? dimension;
|
||||
|
||||
/// The width of the indicator with a default of 2
|
||||
final double? strokeWidth;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
width: dimension ?? 24,
|
||||
height: dimension ?? 24,
|
||||
child: FittedBox(
|
||||
child: CircularProgressIndicator(strokeWidth: strokeWidth ?? 4),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user