Last updated:
0 purchases
flutter gruvbox theme
Gruvbox Theme for Flutter #
Retro groove theme for Flutter, based on the
Gruvbox color scheme.
Initially derived from flutter_nord_theme.
Copyright (c) 2021 Firefnix
Getting started #
To use this package, first add flutter_gruvbox_theme as a
dependency in your pubspec.yaml file:
dependencies:
flutter_gruvbox_theme: <latest version>
copied to clipboard
Usage #
Once the package is installed, make sure to import the package in the file that
you are going to need it:
import 'package:flutter_gruvbox_theme/flutter_gruvbox_theme.dart';
copied to clipboard
And then you can pass GruvboxTheme.dark and GruvboxTheme.light as the
ThemeData to your MaterialApp.
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
themeMode: ThemeMode.light, // Or [ThemeMode.dark]
theme: GruvboxTheme.light(),
darkTheme: GruvboxTheme.dark(),
home: Scaffold(
appBar: AppBar(title: const Text('Title')),
body: const Center(child: Text('Example text.')),
),
);
}
}
copied to clipboard
License #
This package is licensed under the permissive MIT License.
See the LICENSE file in this repository to get a full copy.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.