import 'package:flutter/widgets.dart'; import 'package:mpcore/mpcore.dart'; class MyHomePage extends StatelessWidget { @override Widget build(BuildContext context) { return MPScaffold( name: 'Template', body: Center( child: Container( width: 200, height: 200, color: Colors.blue, child: Center( child: Text( 'Hello, MPFlutter!', style: TextStyle( fontSize: 18, fontWeight: FontWeight.bold, color: Colors.white, ), ), ), ), ), ); } } void main() { runApp(MyApp()); MPCore().connectToHostChannel(); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MPApp( title: 'MPFlutter Demo', color: Colors.blue, routes: { '/': (context) => MyHomePage(), }, navigatorObservers: [MPCore.getNavigationObserver()], ); } }