baseScreenFileContent constant

String const baseScreenFileContent

Implementation

static const baseScreenFileContent =
    """import 'package:<app_name>/App/data/constants/color_constants.dart';
import 'package:flutter/material.dart';

class BaseScreen extends StatelessWidget {
const BaseScreen({
  super.key,
  this.appBar,
  this.drawer,
  this.body,
  this.floatingActionButton,
  this.bottomNavigationBar,
  this.backgroundColor,
});
final PreferredSizeWidget? appBar;
final Drawer? drawer;
final Widget? body;
final Widget? floatingActionButton;
final Widget? bottomNavigationBar;
final Color? backgroundColor;

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: appBar,
    body: body,
    backgroundColor: backgroundColor ?? AppColors.backgroundColor,
    drawer: drawer,
    floatingActionButton: floatingActionButton,
    bottomNavigationBar: bottomNavigationBar,
  );
}
}""";