flutter_easyloading
flutter_easyloading copied to clipboard
Can you set Material:type with MaterialType.transparency?
This is very useful for me, because I need to implement a flutter app with a translucent background
in _FlutterEasyLoadingState
@override Widget build(BuildContext context) { return Material( type: MaterialType.transparency, //need add this child: Overlay( initialEntries: [ EasyLoadingOverlayEntry( builder: (BuildContext context) { if (widget.child != null) { return widget.child!; } else { return Container(); } }, ), _overlayEntry, ], ), ); }
Same problem as 99#
you can set canvasColor of ThemeData like
theme: ThemeData(
canvasColor: Colors.transparent
)
you must set it in lib/main.dart