|
|
@ -1,4 +1,4 @@ |
|
|
|
import 'package:flutter/widgets.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:intersperse/intersperse.dart'; |
|
|
|
import 'package:intersperse/intersperse.dart'; |
|
|
|
import 'package:meta/meta.dart'; |
|
|
|
import 'package:meta/meta.dart'; |
|
|
|
import 'package:neon/src/settings/widgets/settings_tile.dart'; |
|
|
|
import 'package:neon/src/settings/widgets/settings_tile.dart'; |
|
|
@ -15,12 +15,19 @@ class SettingsCategory extends StatelessWidget { |
|
|
|
final List<SettingsTile> tiles; |
|
|
|
final List<SettingsTile> tiles; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(final BuildContext context) => Column( |
|
|
|
Widget build(final BuildContext context) { |
|
|
|
|
|
|
|
final textTheme = Theme.of(context).textTheme; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
if (title != null) ...[ |
|
|
|
if (title != null) |
|
|
|
title!, |
|
|
|
DefaultTextStyle( |
|
|
|
], |
|
|
|
style: textTheme.titleMedium!.copyWith( |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child: title!, |
|
|
|
|
|
|
|
), |
|
|
|
...tiles, |
|
|
|
...tiles, |
|
|
|
] |
|
|
|
] |
|
|
|
.intersperse( |
|
|
|
.intersperse( |
|
|
@ -30,4 +37,5 @@ class SettingsCategory extends StatelessWidget { |
|
|
|
) |
|
|
|
) |
|
|
|
.toList(), |
|
|
|
.toList(), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|