tap_to_expand 0.7.2 copy "tap_to_expand: ^0.7.2" to clipboard
tap_to_expand: ^0.7.2 copied to clipboard

This package is to build expandable widget fast and easy with few lines and you can customize it to whatever!.

example/example.md

Here is The Complete Example

import 'package:tap_to_expand/tap_to_expand.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'TapToExpand Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  State createState() {
    return MyHomePageState();
  }
}

class MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Home"),
      ),
      body: Center(
        child: TapToExpand(
          content: Column(
            children: <Widget>[
              for (var i = 0; i < 20; i++)
                Text(
                  "data $i",
                  style: const TextStyle(color: Colors.white, fontSize: 20),
                ),
            ],
          ),
          title: const Text(
            'TapToExpand',
            style: TextStyle(
              color: Colors.white,
              fontSize: 20,
            ),
          ),
          onTapPadding: 10,
          closedHeight: 70,

          borderRadius: 10,
          openedHeight: 200,
        ),
      ),
    );
  }
}
84
likes
160
pub points
87%
popularity

Publisher

unverified uploader

This package is to build expandable widget fast and easy with few lines and you can customize it to whatever!.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tap_to_expand