35 lines
879 B
Dart
35 lines
879 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class FormCard extends StatelessWidget {
|
|
const FormCard({
|
|
Key key,
|
|
@required this.children,
|
|
this.crossAxisAlignment,
|
|
}) : super(key: key);
|
|
|
|
final List<Widget> children;
|
|
final CrossAxisAlignment crossAxisAlignment;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.all(12.0),
|
|
child: Card(
|
|
elevation: 4.0,
|
|
child: Padding(
|
|
padding: const EdgeInsets.only(
|
|
left: 16.0, top: 16.0, right: 16.0, bottom: 20.0),
|
|
child: Container(
|
|
width: double.infinity,
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
crossAxisAlignment: crossAxisAlignment ?? CrossAxisAlignment.center,
|
|
children: children,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|