expandable_card 0.0.3+1 expandable_card: ^0.0.3+1 copied to clipboard
a Flutter Widget that makes it easy to build a page with a bottom Card that can be expanded on user drag.
import 'package:flutter/material.dart';
import 'package:expandable_card/expandable_card.dart';
void main() => runApp(ExampleApp());
class ExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: ExpandableCardPage(
page: Center(
child: Text("Background page"),
),
expandableCard: ExpandableCard(
children: <Widget>[Text("Hello world")],
),
),
),
);
}
}