feat(wyatt_app_template): use brickgen
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class WyattAppTemplateScaffold extends StatelessWidget {
|
||||
const WyattAppTemplateScaffold({
|
||||
required this.body,
|
||||
super.key,
|
||||
this.title,
|
||||
this.fabChildren,
|
||||
});
|
||||
|
||||
final Widget? title;
|
||||
final Widget body;
|
||||
final List<Widget>? fabChildren;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: AppBar(title: title),
|
||||
body: body,
|
||||
floatingActionButton: (fabChildren?.isNotEmpty ?? false)
|
||||
? Column(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: fabChildren!,
|
||||
)
|
||||
: null,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
# just to keep empty folder in brick generation
|
||||
Reference in New Issue
Block a user