Files
2019-08-13 20:38:46 +08:00

42 lines
1.2 KiB
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:flutter_web/material.dart';
import 'package:flutter_go/components/widget_demo.dart';
import './demo.dart';
const Text0 = '''
### **简介**
> 页面跳转携带参数替换整个屏幕的页面路由。
- 对于Android页面的进入以下方滑动向上页面退出以上方滑动向下方。在ios上页面进度从右边滑入退出相反。
- 默认情况下当路由器被另外一个替换时前一个路由将被保留在内存中如果希望在不需要的时候能够释放资源请将maintainState设置为false
''';
const String Text1 = """
### **基本用法**
> 如下图示例:
""";
class Demo extends StatefulWidget {
static const String routeName = '/element/themes/Material/MaterialPageRoute';
@override
State<StatefulWidget> createState() => _DemoState();
}
class _DemoState extends State<Demo> {
@override
Widget build(BuildContext context) {
return WidgetDemo(
title: 'MaterialPageRoute',
codeUrl: 'themes/Material/MaterialPageRoute/demo.dart',
docUrl:
'https://docs.flutter.io/flutter/material/MaterialPageRoute-class.html',
contentList: [
Text0,
Text1,
FirstPage(),
],
);
}
}