File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
- import 'package:flutter/material.dart' ;
2
- import 'package:flutter/widgets.dart' ;
3
1
import 'package:flutter_neumorphic/flutter_neumorphic.dart' ;
4
- import 'package:flutter_neumorphic/src/widget/back_button.dart' ;
5
2
6
3
class NeumorphicAppBar extends StatefulWidget implements PreferredSizeWidget {
7
4
static const toolbarHeight = kToolbarHeight + 16 * 2 ;
@@ -180,8 +177,8 @@ class NeumorphicAppBarState extends State<NeumorphicAppBar> {
180
177
if (title != null ) {
181
178
final AppBarTheme appBarTheme = AppBarTheme .of (context);
182
179
title = DefaultTextStyle (
183
- style: (appBarTheme.textTheme ? .headline5 ??
184
- Theme .of (context).textTheme.headline5 ! )
180
+ style: (appBarTheme.titleTextStyle ??
181
+ Theme .of (context).textTheme.titleMedium ! )
185
182
.merge (widget.textStyle ?? nTheme? .current? .appBarTheme.textStyle),
186
183
softWrap: false ,
187
184
overflow: TextOverflow .ellipsis,
You can’t perform that action at this time.
0 commit comments