loginMobx function

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

generate template for login screen

Implementation

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

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(),
    );
  }
}''');
}