Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 1.96 KB

README.md

File metadata and controls

73 lines (59 loc) · 1.96 KB

WebsiteDiscordReleasesDonateDocumentation

ZenitUI

Design beautiful apps using Flutter

What is ZenitUI

ZenitUI is a UI library for Flutter meant to be used besides the Material library

Content:

Installation

Add the package to your dependencies:

dependencies:
  zenit_ui: 
    git: https://github.com/dahliaOS/zenit_ui

Components

Button

A button gives the user a way to trigger an immediate action. There are two types of Buttons. Primary and Secondary.

Here is an example of how to create a basic Primary Button:

PrimaryButton(
  onPressed: () => print("PrimaryButton was clicked"),
  backgroundColor: ZenitColors.blue,
  foregroundColor: const Color(0xffffffff),
  child: const Text(
    "Primary Button",
  ),
),

For a SecondaryButton just change the keyword to SecondaryButton.

Switch

A Switch is a component which allows you to toggle things on and off.

Here is an example of how to create a basic Switch:

bool _checked = false;

Switch(
  value: _checked,
  onChanged: (value) => setState(() => _checked = value),
),

License

Copyright @ 2019-2023 - The dahliaOS Authors - [email protected]

This project is licensed under the Apache 2.0 license