fluffychat/lib/pangea/toolbar/widgets/toolbar_content_loading_indicator.dart
wcjord 8abf036381
Refactor: Move toolbar content to bottom of screen
Co-authored-by: ggurdin <ggurdin@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
2025-03-06 15:52:07 -05:00

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