FLUTTER ECOSYSTEM

gtk-flutter/adwaita

Implementação do tema adwaita para flutter/dart

Capa do projeto adwaita
Stars
49
Forks
13
Último push (UTC)
10 de jan. de 2026
Status do projeto
Ativo
GTK Flutter GitHub avatar
GITHUB Organization

GTK Flutter ↗

GTK + Flutter

India
LinguagensDart

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

Adwaita Theme

CI GitHub Super-Linter

Implementation of the adwaita color scheme found in libadwaita.

Inspired by the yaru theme for flutter.

Usage

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  final ValueNotifier<ThemeMode> themeNotifier = ValueNotifier(ThemeMode.light);

  MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ValueListenableBuilder<ThemeMode>(
        valueListenable: themeNotifier,
        builder: (_, ThemeMode currentMode, __) {
          return MaterialApp(
              theme: AdwaitaThemeData.light(),
              darkTheme: AdwaitaThemeData.dark(),
              debugShowCheckedModeBanner: false,
              home: MyHomePage(themeNotifier: themeNotifier),
              themeMode: currentMode);
        });
  }
}

Examples

light_theme

dark_theme