widget_tray 0.0.3 widget_tray: ^0.0.3 copied to clipboard
A Flutter package with a collection of custom widgets to streamline UI design and simplify app development.
Widget_Tray #
A Flutter package that provides a curated collection of custom widgets to simplify UI design and app development. With Widget_Tray, you can quickly create beautiful, reusable, and responsive user interfaces.
Features #
- A wide variety of customizable widgets
- Easy to use and integrate into any Flutter project
- Supports responsive design for multiple screen sizes
- Well-documented and actively maintained
List of Widgets #
- Expandable Tile use CustomExpandableTile(),
Installation #
Add the following dependency to your pubspec.yaml
file:
dependencies:
widget_tray: ^0.0.2
Usage #
Import the package in your Dart code:
import 'package:widget_tray/widget_tray.dart';
Example #
Here's a simple example of how to use a widget from the Widget_Tray package: main app
import 'package:flutter/material.dart';
import 'package:widget_tray/widget_tray.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('Widget Tray Example')),
body: Center(
child: YourWidget(), // Replace with an actual widget from the package
),
),
);
}
}
use of ExpansionListExample
ExpansionListExample()
////
class ExpansionListExample extends StatelessWidget {
const ExpansionListExample({
super.key,
});
@override
Widget build(BuildContext context) {
return const CustomExpandableTile(
title: 'Expandable Tile',
icon: Icons.expand,
children: [
ListTile(
title: Text('Home'),
leading: Icon(Icons.home),
),
ListTile(
title: Text('Profile'),
leading: Icon(Icons.person),
),
ListTile(
title: Text('Settings'),
leading: Icon(Icons.settings),
),
],
);
}
}