Files
hipmi/templates/simple/page.tmpl
2025-02-04 22:35:44 +08:00

24 lines
661 B
Cheetah

import 'package:flutter/material.dart';
import 'package:${appName}${relative}/index.dart';
class ${upperName}Page extends StatefulWidget {
static const String routeName = '/${privateName}';
@override
_${upperName}PageState createState() => _${upperName}PageState();
}
class _${upperName}PageState extends State<${upperName}Page> {
final _${privateName}Bloc = ${upperName}Bloc(Un${upperName}State());
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('${upperName}'),
),
body: ${upperName}Screen(${privateName}Bloc: _${privateName}Bloc),
);
}
}