File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ class NeumorphicEmbossDecorationPainter extends BoxPainter {
130
130
131
131
void _paintShadows (Canvas canvas, Path path) {
132
132
final Matrix4 matrix4 = Matrix4 .identity ()
133
+ // ignore: deprecated_member_use
133
134
..scale (_cache.scaleX, _cache.scaleY);
134
135
135
136
canvas
Original file line number Diff line number Diff line change @@ -175,11 +175,12 @@ class NeumorphicAppBarState extends State<NeumorphicAppBar> {
175
175
176
176
Widget ? title = widget.title;
177
177
if (title != null ) {
178
- final AppBarTheme appBarTheme = AppBarTheme .of (context);
179
178
title = DefaultTextStyle (
180
- style: (appBarTheme .titleTextStyle ??
179
+ style: (AppBarTheme . of (context) .titleTextStyle ??
181
180
Theme .of (context).textTheme.titleMedium! )
182
- .merge (widget.textStyle ?? nTheme? .current? .appBarTheme.textStyle),
181
+ .merge (widget.textStyle ??
182
+ nTheme? .current? .appBarTheme.textStyle ??
183
+ const TextStyle ()),
183
184
softWrap: false ,
184
185
overflow: TextOverflow .ellipsis,
185
186
child: title,
You can’t perform that action at this time.
0 commit comments