Skip to main content
Glama
chinggu88

FastMCP Style Enforcer

by chinggu88
view.md1.06 kB
## 1. View 구조 ### GetView 사용 ```dart // Good - GetView로 Controller 바인딩 class HomeScreen extends GetView<HomeController> { const HomeScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Home')), body: Obx(() { if (controller.isLoading) { return const Center(child: CircularProgressIndicator()); }else{ return Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ //구성위젯1 Widget1() //공백 Sizedbox(hight:10), ElevatedButton( onPressed: controller.refresh, child: const Text('다시 시도'), ), ], ), ); } }), ); } Obx Widget1(){ return Obx((){ return Container( child:Text('${controller.index.toString()}') ); }); } } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chinggu88/flutter_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server