flutter_widget_catalogue 1.1.4+3
flutter_widget_catalogue: ^1.1.4+3 copied to clipboard
Create awesome apps very faster with Flutter's collection of visual, structural, platform, UI, and interactive widgets.
Flutter widget catalogue #
Create an awesome apps very faster with Flutter's collection of visual, structural, platform, UI and interactive widgets. Its a open source package.
Buttons
All types of buttons set in this package. Auth Buttons for authenticating with the most popular social networks like: Google, Facebook, Apple and too other and add more buttons like (Rounded buttons, simple buttons, border color button, etc....).
Switch
An easy to implement custom switch created for Flutter. Give it a custom height and width, colors, size, border for the switch and toggle, border radius, colors, toggle size, a set to display an 'On' and 'Off' text and able to add custom icon inside the toggle.
Neumorphic
A complete, ready to use, Neumorphic ui kit for Flutter like(Buttons, switch, Container, Slider, Text, Icon, CheckBox, Toggle, Indicator, Range Slider, etc..).
Installing #
-
Add dependency to
pubspec.yaml
Get the latest version in the 'Installing' tab on pub.dev
dependencies:
flutter_widget_catalogue: <latest-version>
- Import the package
import 'package:flutter_widget_catalogue/flutter_widget_catalogue.dart';
1) Neumorphic Widgets
Screenshot | Screenshot | Screenshot |
---|---|---|
![]() |
![]() |
![]() |
Screenshot | Screenshot | Screenshot |
---|---|---|
![]() |
![]() |
![]() |
2) Buttons
Screenshot | Screenshot | Screenshot |
---|---|---|
![]() |
![]() |
![]() |
3) Switch
Screenshot #
How to use Buttons #
import 'package:flutter/material.dart';
import 'package:flutter_widget_catalogue/flutter_widget_catelogue.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Buttons',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const Buttons(),
);
}
}
class Buttons extends StatefulWidget {
@override
_ButtonsPageState createState() => _ButtonsPageState();
}
class _ButtonsPageState extends State<Buttons> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
child: SingleChildScrollView(
child: Column(
children: [
Simple Buttons
SuccessButton(title: "Success Button", onPressed: () {}),
Icon Button
ButtonWithIcon(
icon: Icons.local_cafe,
title: "Icon Button",
color: Colors.white,
buttonColor: Colors.cyan,
onPressed: () {},
),
Floating Button
Wrap(
spacing: 8.0,
children: [
FloatingIconButton(icon: Icons.home, onPressed: () {}),
FloatingIconButton(
icon: Icons.home,
onPressed: () {},
buttonColor: Colors.orange),
FloatingIconButton(
icon: Icons.home,
onPressed: () {},
buttonColor: Colors.cyan,
color: Colors.white),
],
),
Line Button
PrimaryLineButton(title: "Line Button", onPressed: () {}),
DefaultLineButton(title: "Default Line Button", onPressed: () {}),
SecondaryLineButton(
title: "Secondary Line Button", onPressed: () {}),
InfoLineButton(
title: "Info Line Button",
textColor: Colors.black,
onPressed: () {}),
SuccessLineButton(title: "Success Line Button", onPressed: () {}),
WarningLineButton(
title: "Warning Line Button",
textColor: Colors.red,
onPressed: () {}),
DangerLineButton(
title: "Danger Line Button",
textColor: Colors.black,
onPressed: () {}),
Rounded Button
RoundedButton(title: "Rounded Button", onPressed: () {}),
RoundedButtonWithIcon(
title: "Rounded Button With Icon",
icon: Icons.title,
buttonColor: Colors.green,
onPressed: () {}),
RoundedButtonWithIcon(
title: "Home",
icon: Icons.home,
buttonColor: Colors.blueGrey,
onPressed: () {}),
Social Button
Wrap(
spacing: 8.0,
runSpacing: 8.0,
children: [
FacebookButton(onPressed: () {}),
TwitterButton(onPressed: () {}),
GithubButton(onPressed: () {}),
InstagramButton(onPressed: () {}),
LinkedinButton(onPressed: () {}),
MicrosoftButton(onPressed: () {}),
GoogleButton(onPressed: () {}),
],
),
Gradiant Button
GradientButton(
onPressed: () {},
splashColor: Colors.orange,
colors: const [Colors.red, Colors.orange],
title: "Gradient Button"),
GradientButton(
onPressed: () {},
splashColor: Colors.orange,
colors: const [Colors.blue, Colors.blueGrey],
title: "Gradient Button"),
GradientButton(
onPressed: () {},
splashColor: Colors.orange,
colors: const [Color(0xFFC33764), Color(0xFF1D2671)],
title: "Gradient Button"),
GradientButton(
onPressed: () {},
splashColor: Colors.orange,
colors: const [Color(0xFFF7971E), Color(0xFFFFD200)],
title: "Gradient Button"),
],
),
),
),
);
}
}
How to use Switch #
class MyHomePage extends StatefulWidget {
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
bool status = false;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Switch"),
),
body: Center(
child: Container(
child: FlutterSwitch(
width: 90.0,
height: 45.0,
toggleSize: 38.0,
value: status2,
borderRadius: 24.0,
padding: 2.0,
toggleColor: Colors.white,
switchBorder:
Border.all(color: Colors.blueAccent, width: 3.0),
activeColor: Colors.cyan,
inactiveColor: Colors.grey.shade400,
onToggle: (val) {
setState(() {
status2 = val;
});
},
)
),
),
),
),
);
}
}
Changelog #
Please see CHANGELOG for more information what has changed recently.