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

outdated

An Expansion tile similar to the list tile supports leading widget with content expansion animation.

example/README.md

import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter_expanded_tile/flutter_expanded_tile.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Expanded Tile Demo',
      home: Example(),
    );
  }
}

class Example extends StatefulWidget {
  @override
  _ExampleState createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
        child: ExpandedListItem(
          leading: Icon(Icons.menu),
          centerHeaderTitle: false,
          title: Text(
            "Lorem ipsum.",
            style: TextStyle(
              color: Colors.grey[800],
            ),
          ),
          expansionListener: (bool v) {
            log("$v");
          },
          content: Container(
            child: Column(
              children: <Widget>[
                Text("text1"),
                Text("text2"),
              ],
            ),
          ),
          contentBackgroundColor: Colors.green[100],
        ),
      ),
    );
  }
}
73
likes
0
points
3.91k
downloads

Publisher

verified publishermicazi.dev

Weekly Downloads

An Expansion tile similar to the list tile supports leading widget with content expansion animation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_expanded_tile