advance_expansion_tile 1.0.0 copy "advance_expansion_tile: ^1.0.0" to clipboard
advance_expansion_tile: ^1.0.0 copied to clipboard

1. It allows you to manually collapse, exapnd or toggle expansion tile 2. It allows you to hide the default icon 3. It allows you to disable click of the exapnsion tile 4. It provides the onTap callba [...]

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:advance_expansion_tile/advance_expansion_tile.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  ///it needed to manually collapse, exapnd or toggle Expansion tile
  final GlobalKey<AdvanceExpansionTileState> _globalKey = GlobalKey();

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            AdvanceExpansionTile(
              key: _globalKey,
              title: const Text("Expansion Tile Title"),
              children: [
                Container(
                  height: 50,
                  color: Colors.green,
                )
              ],
              onTap: () {

              },
            ),
          ],
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () {
            ///toggle expansion tile
            _globalKey.currentState?.toggle();
          },
          child: const Icon(
              Icons.add
          ),
        ),
      ),
    );
  }
}
10
likes
0
pub points
87%
popularity

Publisher

verified publisherwhizfy.ai

1. It allows you to manually collapse, exapnd or toggle expansion tile 2. It allows you to hide the default icon 3. It allows you to disable click of the exapnsion tile 4. It provides the onTap callback whenever the expansion tile gets clicked

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on advance_expansion_tile