common_themes 0.0.1 copy "common_themes: ^0.0.1" to clipboard
common_themes: ^0.0.1 copied to clipboard

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

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.

0
likes
130
points
73
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_bloc, shared_preferences

More

Packages that depend on common_themes