elegant_theme 0.0.5 copy "elegant_theme: ^0.0.5" to clipboard
elegant_theme: ^0.0.5 copied to clipboard

Elegant theme is an awesome way to Beautify your Flutter Application.

Elegant theme is an awesome way to Beautify your Flutter Application

Features #

Easily manage your application theme Toggle between provided themes

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage #

import 'package:elegant_theme/elegant_theme.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    ///Create ElegantTheme
    return ElegantTheme(
      themes: [
        ThemeData.dark(useMaterial3: true).copyWith(),
        ThemeData.dark(useMaterial3: true).copyWith(),
      ],
      child: MaterialApp(
        title: 'Elegant Theme Example',
        debugShowCheckedModeBanner: false,
        theme: ElegantTheme.themeOf(context),
        home: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Home Page"),
        centerTitle: true,
      ),
      body: const Center(
        child: Text("Elegant data"),
      ),
    );
  }
}

Additional information #

This package is still in development; expect frequent update

3
likes
0
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

Elegant theme is an awesome way to Beautify your Flutter Application.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, provider

More

Packages that depend on elegant_theme