flutter_easyloading icon indicating copy to clipboard operation
flutter_easyloading copied to clipboard

Can you set Material:type with MaterialType.transparency?

Open xtuck opened this issue 3 years ago • 2 comments

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

xtuck avatar Sep 27 '21 12:09 xtuck

Same problem as 99#

xtuck avatar Sep 29 '21 02:09 xtuck

you can set canvasColor of ThemeData like

theme: ThemeData(
              canvasColor: Colors.transparent
)

you must set it in lib/main.dart

ijoywan avatar Nov 27 '22 04:11 ijoywan