mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-05-21 14:56:27 +08:00
Modify: List 加 header bug
This commit is contained in:
@ -18,8 +18,6 @@ class Pagination extends StatelessWidget {
|
|||||||
const Icon(Icons.language, semanticLabel: 'Language'),
|
const Icon(Icons.language, semanticLabel: 'Language'),
|
||||||
];
|
];
|
||||||
|
|
||||||
final List<StoryModel> bannerStories = [];
|
|
||||||
|
|
||||||
final List<dynamic> arr = [
|
final List<dynamic> arr = [
|
||||||
{'image': 'https://img.alicdn.com/tfs/TB1W4hMAwHqK1RjSZJnXXbNLpXa-519-260.jpg', 'type': 0, 'id': 9695909, 'url': 'https://www.zhihu.com/question/294145797/answer/551162834', 'title': '为什么阿里巴巴、腾讯和 Google 之类的企业都在使用 Flutter 开发 App?'},
|
{'image': 'https://img.alicdn.com/tfs/TB1W4hMAwHqK1RjSZJnXXbNLpXa-519-260.jpg', 'type': 0, 'id': 9695909, 'url': 'https://www.zhihu.com/question/294145797/answer/551162834', 'title': '为什么阿里巴巴、腾讯和 Google 之类的企业都在使用 Flutter 开发 App?'},
|
||||||
{'image': 'https://img.alicdn.com/tfs/TB1XmFIApzqK1RjSZSgXXcpAVXa-720-338.jpg', 'type': 0, 'id': 9695859, 'url': 'https://zhuanlan.zhihu.com/p/51696594', 'title': 'Flutter 1.0 正式发布: Google 的便携 UI 工具包'},
|
{'image': 'https://img.alicdn.com/tfs/TB1XmFIApzqK1RjSZSgXXcpAVXa-720-338.jpg', 'type': 0, 'id': 9695859, 'url': 'https://zhuanlan.zhihu.com/p/51696594', 'title': 'Flutter 1.0 正式发布: Google 的便携 UI 工具包'},
|
||||||
@ -37,6 +35,7 @@ class Pagination extends StatelessWidget {
|
|||||||
|
|
||||||
List<Widget> _pageSelector(BuildContext context) {
|
List<Widget> _pageSelector(BuildContext context) {
|
||||||
List<Widget> list = [];
|
List<Widget> list = [];
|
||||||
|
List<StoryModel> bannerStories = [];
|
||||||
/// super.initState();
|
/// super.initState();
|
||||||
arr.forEach((item) {
|
arr.forEach((item) {
|
||||||
bannerStories.add(StoryModel.fromJson(item));
|
bannerStories.add(StoryModel.fromJson(item));
|
||||||
@ -55,6 +54,7 @@ class Pagination extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return
|
return
|
||||||
Column(
|
Column(
|
||||||
|
key:Key('__header__'),
|
||||||
//physics: AlwaysScrollableScrollPhysics(),
|
//physics: AlwaysScrollableScrollPhysics(),
|
||||||
//padding: EdgeInsets.only(),
|
//padding: EdgeInsets.only(),
|
||||||
children: _pageSelector(context)
|
children: _pageSelector(context)
|
||||||
|
Reference in New Issue
Block a user