flowbite_ui 0.0.2
flowbite_ui: ^0.0.2 copied to clipboard
Flowbite UI Kit
Flowbite UI #
Unofficial Flutter package for Flowbite UI Kit. Flowbite UI Kit is made by Themesberg and licensed under CC BY 4.0.
Installation #
Add flowbite_ui dependency to your Flutter project:
dependencies:
flowbite_ui: ^<latest-version>
# Optional:
flowbite_icons: ^<latest-version>
Getting Started #
Before using the components below, make sure that theme and darkTheme are set properly in your app:
MaterialApp(
theme: FlowbiteTheme.light, // Set light theme
darkTheme: FlowbiteTheme.dark, // Set dark theme
themeMode: ThemeMode.system, // Optional: Make the app follow system's theme.
home: Scaffold(
body: Text('My App'),
),
)
Reference #
Components #
Alert #
Illustrations:
Usage example:
import 'package:flowbite_ui/flowbite_ui.dart';
import 'package:flowbite_icons/flowbite_icons.dart';
// Default/Normal
FlowbiteAlert(
text: "Great job! You've acknowledged this significant alert message.",
color: FlowbiteAlertColor.normal,
onTapClose: () {},
)
// Complex
FlowbiteAlert.complex(
heading: 'Alert heading',
text: "Great job! You've acknowledged this significant alert message.",
color: FlowbiteAlertColor.normal,
onTapClose: () {},
buttonLabel: 'Learn more',
leadingIcon: Icon(FlowbiteOutlineIcons.open_book),
onPressedButton: () {},
)
// Small
FlowbiteAlert.small(
text: "Great job! You've acknowledged this significant alert message.",
badgeText: 'New',
color: FlowbiteAlertColor.normal,
onTapClose: () {},
onTap: () {},
)
// Border Top
FlowbiteAlert.borderTop(
text: "Great job! You've acknowledged this significant alert message.",
color: FlowbiteAlertColor.normal,
onTapClose: () {},
),
Button #
Illustrations:
Usage example:
import 'package:flowbite_ui/flowbite_ui.dart';
import 'package:flowbite_icons/flowbite_icons.dart';
// With Icon
FlowbiteButton.icon(
onPressed: () {},
label: Text('Button text'),
leadingIcon: Icon(FlowbiteOutlineIcons.arrow_left),
trailingIcon: Icon(FlowbiteOutlineIcons.arrow_right),
color: FlowbiteButtonColor.brand, // default
size: FlowbiteButtonSize.base, // default
)
// Icon Only
FlowbiteButton.iconOnly(
onPressed: () {},
icon: Icon(FlowbiteOutlineIcons.heart),
color: FlowbiteButtonColor.brand, // default
size: FlowbiteButtonSize.base, // default
)
// Outlined With Icon
FlowbiteOutlinedButton.icon(
onPressed: () {},
label: Text('Button text'),
leadingIcon: Icon(FlowbiteOutlineIcons.arrow_left),
trailingIcon: Icon(FlowbiteOutlineIcons.arrow_right),
color: FlowbiteOutlinedButtonColor.success, // default
size: FlowbiteButtonSize.base, // default
)
// Outlined Icon Only
FlowbiteOutlinedButton.iconOnly(
onPressed: () {},
icon: Icon(FlowbiteOutlineIcons.heart),
color: FlowbiteOutlinedButtonColor.success, // default
size: FlowbiteButtonSize.base, // default
)
Icon Shape #
Illustrations:
Usage example:
import 'package:flowbite_ui/flowbite_ui.dart';
import 'package:flowbite_icons/flowbite_icons.dart';
FlowbiteIconShape(
icon: FlowbiteOutlineIcons.fire,
type: FlowbiteIconShapeType.circle, // default
color: FlowbiteIconShapeColor.brand, // default
size: FlowbiteIconShapeSize.base, // default
)
Spinner #
Illustrations:
Usage example:
import 'package:flowbite_ui/flowbite_ui.dart';
FlowbiteSpinner(
size: FlowbiteSpinnerSize.base, // default
showTrack: true, // default
value: null, // default
)
Issues #
For issues, file directly in the repository.
Find this library useful? ❤️ #
Support it by joining stargazers for this repository. ⭐️
Also, follow me on GitHub for my next project! 🤩
License #
Copyright 2026 hanmajid (Muhammad Farhan Majid)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.