We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import 'package:flutter/widgets.dart'; import 'package:mpcore/mpcore.dart'; import 'package:mpflutter_template/second_page.dart'; 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(), '/second': (context) => MySecondPage(), }, navigatorObservers: [MPCore.getNavigationObserver()], ); } } class MyHomePage extends StatefulWidget { @override State<MyHomePage> createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> { double _radius = 20; var inside = false; @override Widget build(BuildContext context) { print(_radius); return MPScaffold( name: 'Template', body: Center( child: GestureDetector( onTap: () { setState(() { _radius = 0; }); }, child: Container( width: 100, height: 100, decoration: BoxDecoration( color: Colors.green, borderRadius: BorderRadius.circular(_radius), ), ), )), ); } }
The text was updated successfully, but these errors were encountered:
01aa053
fix: #174
b1aa560
PonyCui
No branches or pull requests
The text was updated successfully, but these errors were encountered: