import 'package:flutter/material.dart';

class AppDefaultScaffold extends StatelessWidget {
  const AppDefaultScaffold({
    required this.body,
    this.title,
    this.fabChildren,
    super.key,
  });

  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,
      );
}
