mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 09:07:47 +01:00
a54ca799b9
* update rules of analysis_options.yaml. and solved all problems * refactor: fix remaining problems --------- Co-authored-by: Ushie <ushiekane@gmail.com>
37 lines
929 B
Dart
37 lines
929 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_i18n/flutter_i18n.dart';
|
|
|
|
class SettingsSection extends StatelessWidget {
|
|
const SettingsSection({
|
|
Key? key,
|
|
required this.title,
|
|
required this.children,
|
|
}) : super(key: key);
|
|
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: I18nText(
|
|
title,
|
|
child: Text(
|
|
'',
|
|
style: TextStyle(
|
|
color: Theme.of(context).colorScheme.primary,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: children,
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|