screenTemplate top-level constant

String const screenTemplate

screenTemplate

Implementation

const String screenTemplate = """import 'package:projectName/core.dart';\n
class className extends StatelessWidget {
  /// ### `className`
  ///
  /// `Description`:
  ///
  /// `Example`:
  // TODO: Implement the className
  const className({Key? key}) : super(key: key);

  /// `pageKey`: current widget key which will be important when testing widget
  static const Key pageKey = ValueKey("className");

  static const String title = "className";

  @override
  Widget build(BuildContext context) {

    /// set the current browser title
    ApplicationService.setTitle(context, title);

    return ChangeNotifierProvider(
      create: (_) => classNameController(),
      child: AdaptivePlatformWidget(child: Scaffold(body: Center(child:Text("className")))),
    );
  }
}""";