yaru_widgets 1.0.3 yaru_widgets: ^1.0.3 copied to clipboard
Common flutter widgets useful for building desktop and web applications.
import 'package:flutter/material.dart';
import 'package:yaru/yaru.dart';
import 'package:yaru_icons/yaru_icons.dart';
import 'package:yaru_widgets/yaru_widgets.dart';
import 'package:yaru_widgets_example/example_page_items.dart';
void main() {
runApp(Home());
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: yaruLight,
darkTheme: yaruDark,
home: YaruMasterDetailPage(
leftPaneWidth: 280,
previousIconData: YaruIcons.go_previous,
searchHint: 'Search...',
searchIconData: YaruIcons.search,
pageItems: examplePageItems,
),
);
}
}