import 'package:flutter/material.dart'; class AppForm extends StatelessWidget { const AppForm({ @required this.children, @required this.formKey, }); final GlobalKey formKey; final List children; @override Widget build(BuildContext context) { return Form( key: formKey, child: ListView( children: children, ), ); } }