libadwaita_bitsdojo 0.5.0 libadwaita_bitsdojo: ^0.5.0 copied to clipboard
A libadwaita package to get platformAppWindow object from
Minimal usage #
#pubspec.yaml
dependencies:
adwaita:
libadwaita:
libadwaita_bitsdojo:
// main.dart
import 'package:adwaita/adwaita.dart';
import 'package:flutter/material.dart';
import 'package:libadwaita/libadwaita.dart';
import 'package:libadwaita_bitsdojo/libadwaita_bitsdojo.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: AdwaitaThemeData.light(),
darkTheme: AdwaitaThemeData.dark(),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return AdwScaffold(
headerbar: (_) => AdwHeaderBar.bitsdojo(
appWindow: appWindow,
start: const [
AdwHeaderButton(
icon: Icon(Icons.nightlight_round, size: 15),
),
],
title: const Text('Bitsdojo Window'),
),
body: const Center(
child: Text('Welcome to Bitsdojo Window Example!'),
),
);
}
}