Search packages, repositories and app categories

easy_settings cover
Package detailsv1.0.2

easy_settings

A package to make settings management easier with a beautiful and appealing user interface.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
181
Likes
8
Pub points
160

Install package

flutter pub add easy_settings

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Easy Settings is a Flutter package designed to simplify the creation and management of app settings with an elegant, customizable user interface. It provides pre-built widgets for common settings elements like toggles, sliders, and text inputs, enabling developers to quickly implement intuitive configuration screens. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent experiences across devices. With minimal setup and a clean API, it streamlines the process of building accessible and visually appealing settings panels.

Use cases

  • Building app preference screens
  • Creating theme and language settings
  • Managing user notification preferences
  • Implementing accessibility options
  • Designing onboarding or setup flows

Key features

  • Pre-built, customizable settings widgets
  • Cross-platform compatibility
  • Simple and intuitive API
  • Support for dark mode and localization
  • Built-in validation and state management

Suitable for

  • Flutter beginners
  • Developers seeking rapid UI prototyping
  • Apps requiring extensive user configuration
  • Teams prioritizing consistent UI design
  • Projects targeting multiple platforms

Considerations

  • Limited customization beyond built-in themes
  • May require additional styling for highly unique designs
  • Depends on external dependencies for advanced features
  • Not ideal for complex dynamic forms without extra logic

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

A package that helps to manage and display settings.

Features

  • An API to manage your settings without difficulty.
  • A widget to display your settings easily.

Image Image

Getting started

Add the following line to pubspec.yaml:

dependencies:
  easy_settings: ^1.0.0

Usage

import 'package:easy_settings/easy_settings.dart';
import 'package:flutter/material.dart';

List<SettingsCategory> settingsCategories = [
  SettingsCategory(
      title: "Category 1",
      iconData: Icons.settings,
      settingsSections: [
        SettingsSection(settingsElements: [
          StringSettingsProperty(
              key: "str",
              title: "This is a String settings",
              defaultValue: "Test",
              iconData: Icons.text_fields),
          IntSettingsProperty(
              key: "integer",
              title: "This is an int settings",
              defaultValue: 3,
              iconData: Icons.numbers),
          DoubleSettingsProperty(
              key: "double",
              title: "This is a double settings",
              defaultValue: 3.14,
              iconData: Icons.double_arrow),
          BoolSettingsProperty(
              key: isDarkKey,
              title: "Dark Theme",
              subtitle: "Do you want to use dark theme ?",
              defaultValue: false,
              iconData: Icons.dark_mode),
          EnumSettingsProperty(
              key: "language",
              title: "Language",
              subtitle: "This is an enum settings",
              defaultValue: 0,
              iconData: Icons.language,
              choices: ["English", "Espanol", "Français"]),
          ButtonSettingsElement(
              title: "Quick reset settings",
              subtitle: "I don't ask for confirmation.",
              iconData: Icons.restore,
              onClick: (BuildContext context) => resetSettings())
        ])
      ])
];

void main() async {
  await initializeSettings(settingsCategories);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
                  title: 'Settings',
                  home: const MyHomePage());
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text("Settings"),
        ),
        body: const EasySettingsWidget());
  }
}

Make sure to check out example for more details.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.