Skip to content

Commit

Permalink
reduce heading size
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrossh committed Aug 16, 2023
1 parent e6ba8ed commit b4cc016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ final lightTheme = ThemeData(
),
headlineMedium: TextStyle(
color: Color(0xFF010101),
fontSize: 20,
fontSize: 18,
fontWeight: FontWeight.w500,
letterSpacing: 0.5,
),
Expand Down
3 changes: 2 additions & 1 deletion lib/widgets/sliver_heading.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ class SliverHeading extends StatelessWidget {
margin: EdgeInsets.only(top: top, bottom: bottom, left: 20, right: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Expanded(
child: Text(title, style: Theme.of(context).textTheme.headlineMedium),
),
if (showClose)
IconButton(
icon: const Icon(Icons.close, size: 28),
icon: const Icon(Icons.close, size: 26),
onPressed: () {
Navigator.of(context).pop();
},
Expand Down

0 comments on commit b4cc016

Please sign in to comment.