ZenitUI

Design beautiful apps using Flutter

What is ZenitUI

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

Installation

Add the package to your dependencies:

dependencies:
  zenit_ui: 
    git: https://github.com/larsb24/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),
),

GitHub

View Github

Entradas similares

Deja una respuesta