TF-1961 Transform html email content in composer
(cherry picked from commit f5470c130744242195b265a0ea4aad044ad8e740)
This commit is contained in:
@@ -4,17 +4,35 @@ import 'package:tmail_ui_user/features/base/styles/cupertino_loading_widget_styl
|
||||
class CupertinoLoadingWidget extends StatelessWidget {
|
||||
|
||||
final double? size;
|
||||
final EdgeInsetsGeometry? padding;
|
||||
|
||||
const CupertinoLoadingWidget({super.key, this.size});
|
||||
const CupertinoLoadingWidget({super.key, this.size, this.padding});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
width: size ?? CupertinoLoadingWidgetStyles.size,
|
||||
height: size ?? CupertinoLoadingWidgetStyles.size,
|
||||
child: const CupertinoActivityIndicator(color: CupertinoLoadingWidgetStyles.progressColor)
|
||||
)
|
||||
);
|
||||
if (padding != null) {
|
||||
return Padding(
|
||||
padding: padding!,
|
||||
child: Center(
|
||||
child: SizedBox(
|
||||
width: size ?? CupertinoLoadingWidgetStyles.size,
|
||||
height: size ?? CupertinoLoadingWidgetStyles.size,
|
||||
child: const CupertinoActivityIndicator(
|
||||
color: CupertinoLoadingWidgetStyles.progressColor
|
||||
)
|
||||
)
|
||||
),
|
||||
);
|
||||
} else {
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
width: size ?? CupertinoLoadingWidgetStyles.size,
|
||||
height: size ?? CupertinoLoadingWidgetStyles.size,
|
||||
child: const CupertinoActivityIndicator(
|
||||
color: CupertinoLoadingWidgetStyles.progressColor
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user