Skip to content

clean/ExpandableWidgets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expandable Widgets

A package that provides expandable widgets for Flutter. Written in %100 Dart.

Examples

General use:

         Expandable(
          primaryWidget: Container(
            height: 30,
            child: Center(child: Text('Hello world!')),
          ),
          secondaryWidget: Container(
            height: 45,
            child: Center(
              child: Column(
                children: [
                  Text('Hello'),
                  Text('World!'),
                ],
              ),
            ),
          ),
          backgroundColor: Colors.grey.withOpacity(0.4),
          showArrowIcon: true,
          centralizePrimaryWidget: true,
          isClickable: true,
          padding: EdgeInsets.all(5.0),
         ),

For a long text:

         ExpandableText(
          elevation: 5,
          padding: EdgeInsets.all(10.0),
          animationDuration: Duration(milliseconds: 500),
          textWidget: Text(
            data,
            maxLines: 3,
            overflow: TextOverflow.ellipsis,
          ),
          showArrowIcon: true,
          initiallyExpanded: false,
          hoverOn: false,
          arrowLocation: ArrowLocation.right,
          finalArrowLocation: ArrowLocation.bottom,
         ),

About

Expandable widget for Flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 93.7%
  • HTML 4.6%
  • Swift 1.2%
  • Other 0.5%