Common Themes

A Flutter package that provides common theme configurations and utilities for consistent app styling.

Features

  • Theme management using BLoC pattern
  • Custom color configurations
  • Size configuration utilities
  • Theme persistence using SharedPreferences

Getting started

Add this to your package's pubspec.yaml file:

dependencies:
  common_themes: ^0.0.1

Usage

import 'package:common_themes/common_themes.dart';

// Initialize theme
final themeCubit = ThemeCubit();

// Use theme in your app
BlocProvider(
  create: (context) => themeCubit,
  child: MaterialApp(
    theme: ThemeHelper.lightTheme,
    darkTheme: ThemeHelper.darkTheme,
    // ...
  ),
);

Additional Information

For more information about the package, visit the GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.