Skip to content

Commit fb5c910

Browse files
committed
[3.35.1] Fix SDK dependency
1 parent 990f43e commit fb5c910

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/src/decoration/neumorphic_emboss_decoration_painter.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ class NeumorphicEmbossDecorationPainter extends BoxPainter {
130130

131131
void _paintShadows(Canvas canvas, Path path) {
132132
final Matrix4 matrix4 = Matrix4.identity()
133+
// ignore: deprecated_member_use
133134
..scale(_cache.scaleX, _cache.scaleY);
134135

135136
canvas

lib/src/widget/app_bar.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,12 @@ class NeumorphicAppBarState extends State<NeumorphicAppBar> {
175175

176176
Widget? title = widget.title;
177177
if (title != null) {
178-
final AppBarTheme appBarTheme = AppBarTheme.of(context);
179178
title = DefaultTextStyle(
180-
style: (appBarTheme.titleTextStyle ??
179+
style: (AppBarTheme.of(context).titleTextStyle ??
181180
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()),
183184
softWrap: false,
184185
overflow: TextOverflow.ellipsis,
185186
child: title,

0 commit comments

Comments
 (0)