import 'package:flutter/material.dart';

import 'package:im_app/core/ui/base/context_theme_ext.dart';

/// 设置页分组标题
///
/// 用于在列表中区分配置分组，如「外观」、「通知」。
/// 文字颜色跟随 [ColorScheme.primary]，自带上下留白。
///
/// 用法：
/// ```dart
/// const SettingsSectionHeader(title: '外观')
/// ```
class SettingsSectionHeader extends StatelessWidget {
  const SettingsSectionHeader({
    super.key,
    required this.title,
  });

  final String title;

  @override
  Widget build(BuildContext context) {
    final s = context.styles;
    return Padding(
      padding: const EdgeInsets.fromLTRB(16, 24, 16, 4),
      child: Text(title, style: s.sectionLabel),
    );
  }
}
