40 lines
958 B
Dart
40 lines
958 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SettingSection extends StatelessWidget {
|
|
final String name;
|
|
|
|
const SettingSection({required this.name});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(name, style: Theme.of(context).textTheme.titleLarge),
|
|
const Divider(),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
class SettingSubSection extends StatelessWidget {
|
|
final String name;
|
|
|
|
const SettingSubSection({required this.name});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 16.0),
|
|
child: Text(
|
|
name,
|
|
style: Theme.of(context).textTheme.titleLarge?.copyWith(fontSize: 18),
|
|
),
|
|
);
|
|
}
|
|
}
|