layoutTemplate top-level constant

String const layoutTemplate

layoutTemplate

Implementation

const String layoutTemplate = """import 'package:projectName/core.dart';\n
class className extends StatelessWidget {

  /// `child`: optional child widget
  final Widget? child;

  /// ### `className`
  ///
  /// `Description`:
  ///
  /// `Example`:
  // TODO: Implement the className
  const className({Key? key, this.child}) : super(key: key);

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

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (_) => classNameController(),
      child: AdaptivePlatformWidget(child: child ?? Scaffold(body: Center(child:Text("className")))),
    );
  }
}""";