Closed AcnoSaga closed 2 months ago
Badly need this feature. I hope devs see this issue
This should be resolved by https://github.com/flutter/flutter/pull/84733
This should be resolved by #84733
New PR #86504 should resolve this
The behavior is still not working as desired. I've tried the code:
void main() async {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp();
@override
Widget build(BuildContext context) {
return MaterialApp(
home: const Demo(),
);
}
}
class Demo extends StatelessWidget {
const Demo({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Center(
child: SizedBox(
width: 200,
height: 200,
child: Container(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
blurStyle: BlurStyle.inner,
color: Color(0xFF000000),
offset: Offset(0, 0),
blurRadius: 10,
),
],
),
),
),
),
);
}
}
The inner shadow is filling the entire container.
Any updates on this?
This should be closed as a duplicate of https://github.com/flutter/flutter/issues/18636.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Can we have an inset property on BoxShadow similar to CSS to have the effect of an inner shadow ?