flutter_expanded_tile 0.3.0 copy "flutter_expanded_tile: ^0.3.0" to clipboard
flutter_expanded_tile: ^0.3.0 copied to clipboard

outdated

An Expansion tile similar to the list tile supports leading widget,and programatic control with content expansion animation.

flutter_expanded_tile #

An Expansion tile similar to the list tile supports leading widget,checkbox option and programatic control with content expansion animation.

Getting Started #

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
  flutter_expanded_tile: [latest version]

2. Install it #

$ flutter pub get

3. Import it #

import 'package:flutter_expanded_tile/flutter_expanded_tile.dart';

Demo #

See Example page for example code.

Usage #

<<<<<<< HEAD

Property Description Default
@required Text title Text Widget representing the title of the tile @required
@required Widget content Content which expands @required
@required ExpandedTileController controller Tile Controller @required
bool centerHeaderTitle .. false
Widget leading leading widget before the title null
Widget trailing .. Icon(Icons.chevron_right)
double trailingRotation Rotate trailing icon when expanded (in degrees) 90
double contentSeperator Space between header and body 6.0
@required ExpandedTileThemeData controller Tile Theming ExpandedTileThemeData()
Duration expansionDuration .. Duration(milliseconds: 200)
Curve expansionAnimationcurve .. Curves.ease
=======
Property Description Default
@required Widget title Widget to use into the title of the tile @required
@required Widget content Content which expands @required
@required ExpandedTileController controller Tile Controller @required
Widget leading leading widget before the title null
Icon expandedIcon .. !checkable? Icon(Icons.keyboard_arrow_right, color: Colors.black) : null
bool showTrailingIcon Show or hide the trailing icon true
bool centerTitle .. false
bool rotateExpandedIcon .. !checkable? true : false
bool checkable Wheather tile has a checkbox or not. false
Color headerColor .. Color(0xfffafafa)
Color contentBackgroundColor .. Color(0xffeeeeee)
Color headerSplashColor .. Color(0xffeeeeee)
Color checkBoxColor check mark color Color(0xffffffff)
Color checkBoxActiveColor checkbox background color Color(0xff039be5)
EdgeInsetsGeometry titlePadding .. EdgeInsets.all(8)
EdgeInsetsGeometry headerPadding .. EdgeInsets.all(16.0)
EdgeInsetsGeometry contentPadding .. EdgeInsets.all(16.0)
Duration expansionDuration .. Duration(milliseconds: 200)
Curve expansionAnimationcurve .. Curves.ease
Function(bool value) onChecked Listener callback for when checkbox value changes null

Assertions #

  • Must not set checkable as true and define expandIcon.
  • Must not set checkable as false and define onChecked.

Built With #

  • Flutter - Beatiful native apps in record time.
  • Android Studio - Tools for building apps on every type of Android device.
  • Visual Studio Code - Code editing. Redefined.

e6f9e8e5b5f151ad9f51988612ab7c78d518d347

Contributing #

Contributing is more than welcomed on any of my packages/plugins. I will try to keep adding suggested features as i go.

Versioning #

  • V0.1.0 - Initial Release.
  • V0.2.0 - Added controller for programatic expansion and checkbox functionality.
  • V0.2.1 - Added onChecked callback.
  • V0.3.0 - Added Null Safety, Changed some customization properties, Removed checkbox trailing widget as it is possible to implement with a widget,and fixed some bugs.

Authors #

Michael Aziz (Micazi) - Github

License #

This project is licensed under the MIT License - see the LICENSE.md file for details

66
likes
0
pub points
95%
popularity

Publisher

verified publishermicazi.dev

An Expansion tile similar to the list tile supports leading widget,and programatic control with content expansion animation.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_expanded_tile