import 'package:flex_color_scheme/flex_color_scheme.dart';
import 'package:flutter/material.dart';
import 'package:sfm_app/product/theme/app_theme.dart';

class AppThemeDark extends AppTheme {
  static AppThemeDark? _instance;
  static AppThemeDark get instance {
    _instance ??= AppThemeDark._init();
    return _instance!;
  }

  AppThemeDark._init();

  @override
  ThemeData get theme => FlexThemeData.dark(
        useMaterial3: true,
        scheme: FlexScheme.flutterDash,
        subThemesData: const FlexSubThemesData(
          inputDecoratorRadius: 30,
          interactionEffects: true,
          tintedDisabledControls: true,
          blendOnColors: true,
          useM2StyleDividerInM3: true,
          inputDecoratorBorderType: FlexInputBorderType.outline,
          tooltipRadius: 20,
          tooltipWaitDuration: Duration(milliseconds: 500),
          tooltipShowDuration: Duration(milliseconds: 500),
          navigationRailUseIndicator: true,
          navigationRailLabelType: NavigationRailLabelType.all,
        ),
        visualDensity: FlexColorScheme.comfortablePlatformDensity,
      );

  // ThemeData.dark().copyWith(
  //       useMaterial3: true,
  //       colorScheme: _buildColorScheme,
  //     );

  // ColorScheme get _buildColorScheme => FlexColorScheme.dark().toScheme;
  // ColorScheme(
  //       brightness: Brightness.dark,
  //       primary: Colors.blue.shade900,
  //       onPrimary: Colors.blue,
  //       secondary: Colors.white,
  //       onSecondary: Colors.white70,
  //       error: Colors.red,
  //       onError: Colors.orange,
  //       background: Colors.black,
  //       onBackground: Colors.white70,
  //       surface: Colors.grey,
  //       onSurface: Colors.white,
  //     );
}
