mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-06-04 00:58:45 +08:00
modify some description
This commit is contained in:
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* @Author: 一凨
|
||||
* @Date: 2018-11-28 20:44:13
|
||||
* @Last Modified by: 一凨
|
||||
* @Last Modified time: 2018-11-28 20:51:20
|
||||
*/
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../../../../common/widget_demo.dart';
|
||||
import './animatedPadding_demo.dart';
|
||||
|
||||
const contentDesc0 = '''
|
||||
### **简介**
|
||||
> 属于Flutter动画成员的一部分
|
||||
''';
|
||||
|
||||
const contentDesc1 = '''
|
||||
### **基本用法**
|
||||
> 动画版本的Padding
|
||||
- 在给定的时间内,自动完成转换缩进到给定的padding值
|
||||
- 通过设置curve 来指定动画的运行速率动画
|
||||
''';
|
||||
|
||||
class Demo extends StatefulWidget {
|
||||
static const String routeName = '/element/Frame/spacing/AnimatedPadding';
|
||||
_DemoState createState() => _DemoState();
|
||||
}
|
||||
|
||||
class _DemoState extends State<Demo> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'AnimatedPadding',
|
||||
contentList: [
|
||||
contentDesc0,
|
||||
contentDesc1,
|
||||
AnimatedPaddingDemo(),
|
||||
],
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/widgets/AnimatedPadding-class.html',
|
||||
codeUrl: 'elements/Frame/spacing/AnimatedPadding/animatedPadding_demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user