diff --git a/packages/neon/neon/lib/src/settings/widgets/settings_category.dart b/packages/neon/neon/lib/src/settings/widgets/settings_category.dart index 674d3432..fd2b1374 100644 --- a/packages/neon/neon/lib/src/settings/widgets/settings_category.dart +++ b/packages/neon/neon/lib/src/settings/widgets/settings_category.dart @@ -1,4 +1,4 @@ -import 'package:flutter/widgets.dart'; +import 'package:flutter/material.dart'; import 'package:intersperse/intersperse.dart'; import 'package:meta/meta.dart'; import 'package:neon/src/settings/widgets/settings_tile.dart'; @@ -15,19 +15,27 @@ class SettingsCategory extends StatelessWidget { final List tiles; @override - Widget build(final BuildContext context) => Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - if (title != null) ...[ - title!, - ], - ...tiles, - ] - .intersperse( - const SizedBox( - height: 10, - ), - ) - .toList(), - ); + Widget build(final BuildContext context) { + final textTheme = Theme.of(context).textTheme; + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (title != null) + DefaultTextStyle( + style: textTheme.titleMedium!.copyWith( + fontWeight: FontWeight.bold, + ), + child: title!, + ), + ...tiles, + ] + .intersperse( + const SizedBox( + height: 10, + ), + ) + .toList(), + ); + } }