bar

Creator: coderz1093

Last updated:

0 purchases

bar Image
bar Images

Languages

Categories

Add to Cart

Description:

bar

Features #

Title bar for desktop applications

Usage #
import 'package:window_manager/window_manager.dart';
import 'package:bar/bar.dart';

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

@override
Widget build(BuildContext context) => Column(
children: [
TitleBar(
title: Text("My App"),
leading: Icon(Icons.menu),
surfaceColor: Colors.white,
color: Colors.black,
theme: PlatformTheme.mac,
onMaximize: () => windowManager.maximize(),
onClose: () => windowManager.close(),
onStartDragging: () => windowManager.startDragging(),
onUnMaximize: () => windowManager.unMaximize(),
isMaximized: () => windowManager.isMaximized(),
),
Expanded(
child: MaterialApp(),
),
],
);
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.