apptomate_custom_expansion_tile 0.0.1 copy "apptomate_custom_expansion_tile: ^0.0.1" to clipboard
apptomate_custom_expansion_tile: ^0.0.1 copied to clipboard

An enhanced ExpansionTile widget with improved styling options and consistent Material Design aesthetics.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Custom ExpansionTile Example')),
      body: ListView(
        padding: const EdgeInsets.all(8),
        children: [
          CustomExpansionTile(
            title: 'Item 1',
            leading: const Icon(Icons.folder),
            initiallyExpanded: true,
            backgroundColor: Colors.blue[50]!,
            collapsedBackgroundColor: Colors.blue[100]!,
            children: [
              ListTile(
                title: const Text('Sub Item 1'),
                leading: const Icon(Icons.file_copy),
                onTap: () {},
              ),
              ListTile(
                title: const Text('Sub Item 2'),
                leading: const Icon(Icons.file_copy),
                onTap: () {},
              ),
            ],
          ),
          CustomExpansionTile(
            title: 'Item 2',
            leading: const Icon(Icons.folder),
            backgroundColor: Colors.green[50]!,
            collapsedBackgroundColor: Colors.green[100]!,
            children: [
              ListTile(
                title: const Text('Sub Item A'),
                leading: const Icon(Icons.file_copy),
                onTap: () {},
              ),
              ListTile(
                title: const Text('Sub Item B'),
                leading: const Icon(Icons.file_copy),
                onTap: () {},
              ),
            ],
          ),
        ],
      ),
    );
  }
}
0
likes
0
points
47
downloads

Publisher

unverified uploader

Weekly Downloads

An enhanced ExpansionTile widget with improved styling options and consistent Material Design aesthetics.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on apptomate_custom_expansion_tile