mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
f82c439b26
Co-authored-by: validcube <pun.butrach@gmail.com>
34 lines
795 B
Dart
34 lines
795 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SettingsSection extends StatelessWidget {
|
|
const SettingsSection({
|
|
super.key,
|
|
required this.title,
|
|
required this.children,
|
|
});
|
|
final String title;
|
|
final List<Widget> children;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: <Widget>[
|
|
Container(
|
|
padding: const EdgeInsets.only(top: 16.0, bottom: 10.0, left: 20.0),
|
|
child: Text(
|
|
title,
|
|
style: TextStyle(
|
|
color: Theme.of(context).colorScheme.primary,
|
|
),
|
|
),
|
|
),
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: children,
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|