mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
23 lines
777 B
Dart
23 lines
777 B
Dart
import 'package:blurry_modal_progress_hud/blurry_modal_progress_hud.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_spinkit/flutter_spinkit.dart';
|
|
|
|
extension BorderExt on Widget {
|
|
DecoratedBox debugBorder() => DecoratedBox(
|
|
decoration: BoxDecoration(border: Border.all(color: Colors.redAccent)),
|
|
child: this);
|
|
}
|
|
|
|
extension ModalProgressExt on Widget {
|
|
BlurryModalProgressHUD withModalHUD(BuildContext context, bool isLoading) =>
|
|
BlurryModalProgressHUD(
|
|
inAsyncCall: isLoading,
|
|
blurEffectIntensity: 4,
|
|
progressIndicator: SpinKitFoldingCube(
|
|
color: Theme.of(context).highlightColor,
|
|
size: 90,
|
|
),
|
|
color: Theme.of(context).shadowColor,
|
|
child: this);
|
|
}
|