Issue
I want to change that color, becuase by default with themeData.dark() is green
Solution
If by the 'shadow', you mean this effect:

Then this effect is called overscroll glow effect, and to change it you need to change ColorScheme.secondary based on this (docs).
So it will be something like this:
Theme(
data: Theme.of(context).copyWith(
colorScheme: ColorScheme.fromSwatch(
accentColor: Colors.red,
),
),
Answered By - Abdulrahman
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.