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

A Flutter ui package

Getting Started

  • Add the package to your pubspec.yaml file:
dependencies:
    bat_theme: any
  • Use the BatCave widget:
import 'package:bat_theme/bat_theme.dart';

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

  @override
  Widget build(BuildContext context) {
    return BatCave(
        home: Homepage(),
    );
  }
}

Or you can also use the BatThemeData extension:

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        theme: BatThemeData(colors: BatColors.light()),
        home: Homepage(),
    );
  }
}

Or you can also use the BatThemeData light/dark constructors:

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        theme: BatThemeData.light(),
        darkTheme: BatThemeData.dark(),
        home: Homepage(),
    );
  }
}
0
likes
120
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter ui package

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on bat_theme