mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-08-06 09:01:00 +08:00
Modfiy:
1. 去掉 widget-demo 的引用 2. codeUrl 3. 去掉自定customDemo
This commit is contained in:
@ -6,8 +6,7 @@
|
||||
* email: zhu.yan@alibaba-inc.com
|
||||
* tartget: ListBody 的示例
|
||||
*/
|
||||
import '../../../../common/widget-demo.dart';
|
||||
import '../../../../routers/application.dart';
|
||||
import '../../../../common/widget_demo.dart';
|
||||
import 'dart:math';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@ -42,9 +41,8 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'ListBody',
|
||||
codeUrl: '${Application
|
||||
.github['widgetsURL']}/componentss/List/ListBody/demo.dart',
|
||||
child: allCheckboxs(context, this),
|
||||
codeUrl: 'componentss/List/ListBody/demo.dart',
|
||||
contentList: [allDemoBoxs(context, this)],
|
||||
docUrl: 'https://docs.flutter.io/flutter/widgets/ListBody-class.html',
|
||||
);
|
||||
}
|
||||
@ -55,7 +53,7 @@ class _DemoState extends State<Demo> {
|
||||
* context: 运行上下文
|
||||
* that: 指向有状态的 StatefulWidget
|
||||
*/
|
||||
Widget allCheckboxs(BuildContext context, _DemoState that) {
|
||||
Widget allDemoBoxs(BuildContext context, _DemoState that) {
|
||||
return Container(
|
||||
//padding: new EdgeInsets.only(bottom: 20.0, top: 20.0, left: 0, right: 0),
|
||||
child: Column(
|
||||
|
Reference in New Issue
Block a user