28 lines
532 B
Dart
28 lines
532 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class FormCard extends StatelessWidget {
|
|
|
|
const FormCard({
|
|
Key key,
|
|
@required this.children,
|
|
}) : super(key: key);
|
|
|
|
final List<Widget> children;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.all(12.0),
|
|
child: Card(
|
|
elevation: 2.0,
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(16.0),
|
|
child: Column(
|
|
children: children,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|