smart_lib_theme 1.0.4 copy "smart_lib_theme: ^1.0.4" to clipboard
smart_lib_theme: ^1.0.4 copied to clipboard

A Flutter theme management library for dynamic theme switching with BLoC and ThemeExtension.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add smart_lib_theme

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  smart_lib_theme: ^1.0.4

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:smart_lib_theme/core/theme/data/app_bar.dart';
import 'package:smart_lib_theme/core/theme/data/button.dart';
import 'package:smart_lib_theme/core/theme/data/color_scheme.dart';
import 'package:smart_lib_theme/core/theme/data/dialog.dart';
import 'package:smart_lib_theme/core/theme/data/divider.dart';
import 'package:smart_lib_theme/core/theme/data/floating_action_button.dart';
import 'package:smart_lib_theme/core/theme/data/input_themes.dart';
import 'package:smart_lib_theme/core/theme/data/navigation_bar.dart';
import 'package:smart_lib_theme/core/theme/data/progress_indicator.dart';
import 'package:smart_lib_theme/core/theme/data/tab_bar.dart';
import 'package:smart_lib_theme/core/theme/data/text.dart';
import 'package:smart_lib_theme/core/theme/default/default_theme_extensions.dart';
import 'package:smart_lib_theme/core/theme/default/themes.dart';
import 'package:smart_lib_theme/core/theme/extensions/theme_ext.dart';
import 'package:smart_lib_theme/core/theme/extensions/theme_extension.dart';
import 'package:smart_lib_theme/core/utils/exception/constants/exception_constants.dart';
import 'package:smart_lib_theme/di/dependency_injection.dart';
import 'package:smart_lib_theme/features/theme/data/datasource/preferences/app_theme_preferences.dart';
import 'package:smart_lib_theme/features/theme/data/datasource/preferences/app_theme_preferences_impl.dart';
import 'package:smart_lib_theme/features/theme/data/repository/app_theme_repository_impl.dart';
import 'package:smart_lib_theme/features/theme/domain/entity/app_theme.dart';
import 'package:smart_lib_theme/features/theme/domain/repository/app_theme_repository.dart';
import 'package:smart_lib_theme/features/theme/domain/use_cases/get_is_first_launch_use_case.dart';
import 'package:smart_lib_theme/features/theme/domain/use_cases/save_app_theme_use_case.dart';
import 'package:smart_lib_theme/features/theme/presentation/app_theme_manager.dart';
import 'package:smart_lib_theme/features/theme/presentation/bloc/app_theme_bloc.dart';
import 'package:smart_lib_theme/features/theme/presentation/bloc/app_theme_event.dart';
import 'package:smart_lib_theme/features/theme/presentation/bloc/app_theme_state.dart';
import 'package:smart_lib_theme/features/theme/presentation/di/app_theme_di.dart';
import 'package:smart_lib_theme/features/theme/presentation/widgets/app_theme_builder.dart';
7
likes
150
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter theme management library for dynamic theme switching with BLoC and ThemeExtension.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bloc, cupertino_icons, flutter, flutter_bloc, get_it, shared_preferences

More

Packages that depend on smart_lib_theme