duskmoon_settings 1.0.0 copy "duskmoon_settings: ^1.0.0" to clipboard
duskmoon_settings: ^1.0.0 copied to clipboard

Settings UI for DuskMoon Design System — Material, Cupertino, Fluent

duskmoon_settings #

Settings UI for the DuskMoon Design System with Material, Cupertino, and Fluent platform renderers.

Installation #

flutter pub add duskmoon_settings

Usage #

import 'package:duskmoon_settings/duskmoon_settings.dart';

SettingsList(
  sections: [
    SettingsSection(
      title: const Text('General'),
      tiles: [
        SettingsTile.switchTile(
          title: const Text('Dark Mode'),
          initialValue: isDark,
          onToggle: (value) {},
          leading: const Icon(Icons.dark_mode),
        ),
        SettingsTile.navigation(
          title: const Text('Language'),
          value: const Text('English'),
          leading: const Icon(Icons.language),
          onPressed: (context) {},
        ),
      ],
    ),
  ],
);

Platform Rendering #

The settings list automatically renders in the appropriate platform style. Override with DevicePlatform:

SettingsList(
  platform: DevicePlatform.iOS,  // Force Cupertino style
  sections: [...],
);

Theme Integration #

When used with duskmoon_theme, the settings UI automatically picks up DmColorExtension semantic colors for background, section headers, and tile colors.

License #

MIT

0
likes
0
points
75
downloads

Publisher

verified publishergsmlg.dev

Weekly Downloads

Settings UI for DuskMoon Design System — Material, Cupertino, Fluent

Repository (GitHub)
View/report issues

Topics

#flutter #settings #ui #material-design #cupertino

License

unknown (license)

Dependencies

duskmoon_theme, flutter

More

Packages that depend on duskmoon_settings