yaru_widgets 2.0.0-beta-2 copy "yaru_widgets: ^2.0.0-beta-2" to clipboard
yaru_widgets: ^2.0.0-beta-2 copied to clipboard

discontinuedreplaced by: yaru
outdated

Common flutter widgets useful for building desktop and web applications.

example/lib/main.dart

import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:ubuntu_service/ubuntu_service.dart';
import 'package:yaru/yaru.dart';

import 'example.dart';
import 'theme.dart';

void main() {
  registerService<Connectivity>(Connectivity.new);
  runApp(
    MultiProvider(
      providers: [
        ChangeNotifierProvider(create: (_) => LightTheme(yaruLight)),
        ChangeNotifierProvider(create: (_) => DarkTheme(yaruDark)),
      ],
      child: const Home(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Yaru Widgets Factory',
      debugShowCheckedModeBanner: false,
      theme: context.watch<LightTheme>().value,
      darkTheme: context.watch<DarkTheme>().value,
      home: Example.create(context),
    );
  }
}
59
likes
0
points
235
downloads

Publisher

verified publisherubuntu.com

Weekly Downloads

Common flutter widgets useful for building desktop and web applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, yaru, yaru_icons

More

Packages that depend on yaru_widgets