flutter_layer_shell

Last updated:

0 purchases

flutter_layer_shell Image
flutter_layer_shell Images
Add to Cart

Description:

flutter layer shell

flutter_layer_shell #
A bare-bones plugin to help creating wayland bars. All it does is provide a function to configure the position and size of the bar.
Getting Started #
To get started, edit linux/my_application.cc and add the following header
#include <flutter_layer_shell/flutter_layer_shell_plugin.h>
copied to clipboard
And call this function setup_layer_shell(window) right after creating the GTK window:
// Implements GApplication::activate.
static void my_application_activate(GApplication* application) {
MyApplication* self = MY_APPLICATION(application);
GtkWindow* window =
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));

// Must run before creating the view
setup_layer_shell(window);
copied to clipboard
Once done, bar can be set like this:
import 'package:flutter_layer_shell/flutter_layer_shell.dart';

void main() {
WidgetsFlutterBinding.ensureInitialized();
FlutterLayerShell.configure(edge: LayerShellEdge.TOP, size: 65);
runApp(const MyApp());
}
copied to clipboard
There are other to functions to update the size and position dynamically.
FlutterLayerShell.changeSize(size);
FlutterLayerShell.changePosition(layerShellEdge);
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.