Skip to content

Commit 7c9c810

Browse files
committed
remove textTheme
1 parent 55683de commit 7c9c810

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/src/widget/app_bar.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import 'package:flutter/material.dart';
2-
import 'package:flutter/widgets.dart';
31
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
4-
import 'package:flutter_neumorphic/src/widget/back_button.dart';
52

63
class NeumorphicAppBar extends StatefulWidget implements PreferredSizeWidget {
74
static const toolbarHeight = kToolbarHeight + 16 * 2;
@@ -180,8 +177,8 @@ class NeumorphicAppBarState extends State<NeumorphicAppBar> {
180177
if (title != null) {
181178
final AppBarTheme appBarTheme = AppBarTheme.of(context);
182179
title = DefaultTextStyle(
183-
style: (appBarTheme.textTheme?.headline5 ??
184-
Theme.of(context).textTheme.headline5!)
180+
style: (appBarTheme.titleTextStyle ??
181+
Theme.of(context).textTheme.titleMedium!)
185182
.merge(widget.textStyle ?? nTheme?.current?.appBarTheme.textStyle),
186183
softWrap: false,
187184
overflow: TextOverflow.ellipsis,

0 commit comments

Comments
 (0)