homeMobx function

void homeMobx(
  1. String project,
  2. String dir
)

generate template for home screen

Implementation

void homeMobx(String project, String dir) {
  File('$dir/home.dart').writeAsStringSync('''
import 'package:flutter/material.dart';
import 'package:$project/config/config.dart';

class Home extends StatelessWidget {
  const Home({ Key? key }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(appTitle),
      ),
      body: Container(),
    );
  }
}''');
}