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

Expandable Card Widget In Flutter. This is an exmaple package to show how to make an widget with Flutter.

Expandable Card Widget In Flutter. This is an exmaple package to show how to make an widget with Flutter.

Features #

  • Expandable Card View
  • Custom Colors And Texts
  • Simple Usage

Getting started #

  • Install the package: flutter pub add expandablecard

Usage #

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Expandable Card Example'),
        ),
        body: Padding(
          padding: const EdgeInsets.all(16.0),
          child: ExpandableCard(
            title: 'Expandable Card Title',
            cardColor: Colors.lightBlue[50]!,
            titleColor: Colors.deepPurple,
            iconColor: Colors.deepPurpleAccent,
            borderRadius: 12.0,
            padding: const EdgeInsets.all(24.0),
            child: const Text('Here is the expanded content'),
          ),
        ),
      ),
    );
  }
}
copied to clipboard
2
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.08 - 2025.03.23

Expandable Card Widget In Flutter. This is an exmaple package to show how to make an widget with Flutter.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on simplexpandablecard