KeiUI
keiui is a Flutter package that provides a collection of customizable user interface components. It is designed to simplify the creation of elegant and functional user interfaces.
Installation
To install keiui in your Flutter project, follow these steps:
- Add the dependency in your
pubspec.yaml
file:
flutter pub add keiui
dependencies:
keiui: ^2.0.2
- Run the following command in your terminal to update the dependencies:
flutter pub get
Usage
Here is a basic example of how to use keiui in your Flutter application.
-
Import the package in your Dart file:
import 'package:keiui/keiui.dart';
-
Use keiui components in your widget:
import 'package:flutter/material.dart'; import 'package:keiui/keiui.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'keiui Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: HomePage(), ); } } class HomePage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('keiui Demo'), ), body: Center( child: PrimaryButton( text: 'Press Me', onPressed: () { print('Button pressed'); }, ), ), ); } }
Components
Libraries
- common/colors
- common/spacing
- common/text_style
- flutter_ui
- utils/calculate_percentage_util
- utils/date_format_util
- utils/greeting_message_util
- utils/launch_dialog_util
- utils/number_format_util
- widgets/inputs/dropdown
- widgets/inputs/inputs
- widgets/modals/modals
- widgets/notifications/card_notification
- widgets/notifications/notification_bell
- widgets/progress/circular_progress
- widgets/progress/progress_bar