flutter_omarchy 0.1.0
flutter_omarchy: ^0.1.0 copied to clipboard
Develop Flutter apps for Omarchy
Flutter Omarchy #
A Flutter package for developing applications for Omarchy.
[Omarchy Preview]
Introduction #
Flutter Omarchy is a specialized UI toolkit designed for building applications that seamlessly integrate with the omarchy.org Archlinux configuration created by DHH. This package bridges the gap between Flutter's powerful development capabilities and the minimalist, terminal-inspired aesthetic of the Omarchy system. With Flutter Omarchy, developers can create applications that not only function within the Omarchy environment but also maintain its distinctive visual style and interaction patterns.
Quickstart #
Installation #
Add Flutter Omarchy to your pubspec.yaml
:
dependencies:
flutter_omarchy: ^0.1.0
Run the following command:
flutter pub get
Basic Usage #
import 'package:flutter_omarchy/flutter_omarchy.dart';
Future<void> main() async {
await Omarchy.initialize();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return OmarchyApp(
home: OmarchyScaffold(
body: Center(
child: OmarchyButton(
onPressed: () {},
child: Text('Hello Omarchy!'),
),
),
),
);
}
}
Usage #
App Structure #
The OmarchyApp
widget is the root of your application:
OmarchyApp(
title: 'My App',
home: MyHomePage(),
)
Theming #
Flutter Omarchy automatically adapts to the system theme of the Omarchy environment, ensuring your application maintains visual consistency with the rest of the system. The package provides a comprehensive design system that follows terminal-inspired aesthetics with monospaced fonts, bordered containers, and a carefully selected color palette. This theming system handles light and dark mode transitions seamlessly, allowing your application to respond to system-wide theme changes without additional configuration.
final theme = OmarchyTheme.of(context);
Widgets #
Omarchy provides a rich set of widgets:
Basic Widgets
OmarchyScaffold
: Main layout containerOmarchyButton
: Terminal-style buttonOmarchyTextInput
: Text input fieldOmarchyCheckbox
: Checkbox componentOmarchyTile
: List tile component
Navigation
OmarchyNavigationBar
: Side navigation barOmarchyTabs
: Tabbed interfaceOmarchyStatusBar
: Status bar for displaying app state
Layout
OmarchyBordered
: Container with terminal-style bordersOmarchyDivider
: Horizontal or vertical dividerOmarchyResizeDivider
: Resizable divider for split views
Utility
OmarchyTooltip
: Tooltip componentOmarchyPopOver
: Popup overlayOmarchyTreeView
: Hierarchical tree view
Example #
The package includes several example applications:
- Counter: Simple counter app
- Calculator: Basic calculator
- File Explorer: Terminal-style file browser
- Markdown Editor: Simple markdown editor
- Pomodoro: Productivity timer
To run the examples:
cd example
flutter run --app=pomodoro
Roadmap & Ideas #
- Vim motions in text inputs
- Simplified application wide shortcuts configuration
- Preconfigured HJKL shortcuts for navigation
- Specific ormarchy theme configuration (colors, hide nav bar, ...)
- Widgets
- Toasts
- Progress
- Skeleton
- Examples
- Todo list
- AI Chat
- World clocks
- Podcast player
- QRCode generator
- Password manager
- Contact book
- Drawing pad (drawing + text)
- Raycast-like launcher
- Calendar
- Notes app
How to Contribute #
Contributions are welcome! Here's how you can help:
- Fork the Repository: Create your own fork of the project
- Create a Branch: Make your changes in a new branch
- Submit a Pull Request: Open a PR with a clear description of your changes