pageStub function

String pageStub({
  1. required ReCase pageName,
})

Implementation

String pageStub({required ReCase pageName}) => '''
import 'package:flutter/material.dart';

class ${pageName.pascalCase}Page extends StatefulWidget {
  ${pageName.pascalCase}Page({Key? key}) : super(key: key);

  @override
  _${pageName.pascalCase}PageState createState() => _${pageName.pascalCase}PageState();
}

class _${pageName.pascalCase}PageState extends State<${pageName.pascalCase}Page> {

  @override
  void initState() {
    super.initState();

  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(

      ),
      body: SafeArea(
         child: Container(),
      ),
    );
  }
}
''';