You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluffychat/lib/pangea/toolbar/widgets/toolbar_content_loading_ind...

31 lines
701 B
Dart

import 'package:flutter/material.dart';
import 'package:fluffychat/config/app_config.dart';
class ToolbarContentLoadingIndicator extends StatelessWidget {
const ToolbarContentLoadingIndicator({
super.key,
this.height,
});
final double? height;
@override
Widget build(BuildContext context) {
return SizedBox(
width: AppConfig.toolbarMinWidth / 2,
height: height ?? AppConfig.toolbarMinHeight / 2,
child: Center(
child: SizedBox(
height: 14,
width: 14,
child: CircularProgressIndicator(
strokeWidth: 2.0,
color: Theme.of(context).colorScheme.primary,
),
),
),
);
}
}