当前位置: 首页 > news >正文

外贸网站哪家做的好seo费用价格

外贸网站哪家做的好,seo费用价格,上海市建设人才网站,wordpress合并css和js文件实现上拉加载数据,效果如下: flutter滚动列表加载数据 使用的库主要是infinite_scroll_pagination , 安装请查看官网 接口用的是https://reqres.in/提供的接口 请求接口用到的库是dio 下面主要是介绍如何使用infinite_scroll_pagination实现上拉加载…

实现上拉加载数据,效果如下:

flutter滚动列表加载数据

使用的库主要是infinite_scroll_pagination ,

安装请查看官网

接口用的是https://reqres.in/提供的接口

请求接口用到的库是dio

下面主要是介绍如何使用infinite_scroll_pagination实现上拉加载数据,详细学习其它例子请查看infinite_scroll_pagination

main.dart全部代码如下

// ignore_for_file: non_constant_identifier_names
import 'package:flutter/material.dart';
import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart';import 'package:dio/dio.dart' as MyDio;void main() => runApp(const MyApp());class MyApp extends StatelessWidget {const MyApp({super.key});@overrideWidget build(BuildContext context) {return MaterialApp(title: 'Infinite Scroll Demo',theme: ThemeData(primarySwatch: Colors.blue,),home: const InfiniteScrollList(),);}
}class InfiniteScrollList extends StatefulWidget {const InfiniteScrollList({super.key});@override// ignore: library_private_types_in_public_api_InfiniteScrollListState createState() => _InfiniteScrollListState();
}class _InfiniteScrollListState extends State<InfiniteScrollList> {final PagingController<int, UserData> _listController =PagingController(firstPageKey: 1);@overridevoid initState() {super.initState();_listController.addPageRequestListener((page) {_fetchListData(page);});}Future<void> _fetchListData(int page) async {MyDio.Dio dio = MyDio.Dio();MyDio.Response response = await dio.get('https://reqres.in/api/users',queryParameters: {'page': page,// 'stage_id': 4,// 'category_id': 3,});ApiResponse data = ApiResponse.fromJson(response.data);if (data.data.isEmpty) {_listController.appendLastPage(data.data);} else {final nextPageKey = page + 1;_listController.appendPage(data.data, nextPageKey);}}@overrideWidget build(BuildContext context) {return Scaffold(appBar: AppBar(title: const Text('Infinite Scroll Demo')),body: PagedListView<int, UserData>(pagingController: _listController,builderDelegate: PagedChildBuilderDelegate<UserData>(itemBuilder: (context, item, index) =>ListTile(title: SizedBox(child: Text(item.firstName))),noMoreItemsIndicatorBuilder: (context) => const Center(child: Padding(padding: EdgeInsets.all(20.0),child: Text('没有更多了'),),),),),);}@overridevoid dispose() {_listController.dispose();super.dispose();}
}class ApiResponse {final int page;final int perPage;final int total;final int totalPages;final List<UserData> data;final Support support;ApiResponse({required this.page, required this.perPage, required this.total, required this.totalPages, required this.data, required this.support});factory ApiResponse.fromJson(Map<String, dynamic> json) {var list = json['data'] as List;List<UserData> dataList = list.map((i) => UserData.fromJson(i)).toList();return ApiResponse(page: json['page'],perPage: json['per_page'],total: json['total'],totalPages: json['total_pages'],data: dataList,support: Support.fromJson(json['support']),);}
}class UserData {final int id;final String email;final String firstName;final String lastName;final String avatar;UserData({required this.id, required this.email, required this.firstName, required this.lastName, required this.avatar});factory UserData.fromJson(Map<String, dynamic> json) {return UserData(id: json['id'],email: json['email'],firstName: json['first_name'],lastName: json['last_name'],avatar: json['avatar'],);}
}class Support {final String url;final String text;Support({required this.url, required this.text});factory Support.fromJson(Map<String, dynamic> json) {return Support(url: json['url'],text: json['text'],);}
}


文章转载自:
http://idiomatically.bnpn.cn
http://cobalt.bnpn.cn
http://isodynamicline.bnpn.cn
http://cordelle.bnpn.cn
http://eugeosyncline.bnpn.cn
http://stipendiary.bnpn.cn
http://polypidom.bnpn.cn
http://acetyl.bnpn.cn
http://gavage.bnpn.cn
http://maugre.bnpn.cn
http://capriccioso.bnpn.cn
http://dietitian.bnpn.cn
http://loamy.bnpn.cn
http://demythicize.bnpn.cn
http://trade.bnpn.cn
http://reanimation.bnpn.cn
http://peloid.bnpn.cn
http://torment.bnpn.cn
http://cerigo.bnpn.cn
http://ftc.bnpn.cn
http://splayfoot.bnpn.cn
http://crumblings.bnpn.cn
http://average.bnpn.cn
http://habitability.bnpn.cn
http://fleury.bnpn.cn
http://setigerous.bnpn.cn
http://blissfully.bnpn.cn
http://polite.bnpn.cn
http://prescience.bnpn.cn
http://restive.bnpn.cn
http://eidoptometry.bnpn.cn
http://albescent.bnpn.cn
http://indorse.bnpn.cn
http://melanie.bnpn.cn
http://sheet.bnpn.cn
http://floriated.bnpn.cn
http://yard.bnpn.cn
http://weaponeer.bnpn.cn
http://longshoreman.bnpn.cn
http://diamagnetism.bnpn.cn
http://enclosed.bnpn.cn
http://chimae.bnpn.cn
http://uninterpretable.bnpn.cn
http://enteric.bnpn.cn
http://yami.bnpn.cn
http://ungenerosity.bnpn.cn
http://nitrometer.bnpn.cn
http://pyrenoid.bnpn.cn
http://hemipteran.bnpn.cn
http://pripet.bnpn.cn
http://sillily.bnpn.cn
http://sororize.bnpn.cn
http://nyp.bnpn.cn
http://swagged.bnpn.cn
http://microkernel.bnpn.cn
http://concubine.bnpn.cn
http://opsonify.bnpn.cn
http://lichenaceous.bnpn.cn
http://meteorograph.bnpn.cn
http://overawe.bnpn.cn
http://clarify.bnpn.cn
http://agnation.bnpn.cn
http://inarticulately.bnpn.cn
http://horticultural.bnpn.cn
http://stabling.bnpn.cn
http://exedra.bnpn.cn
http://hepaticotomy.bnpn.cn
http://galenism.bnpn.cn
http://saronic.bnpn.cn
http://fulbright.bnpn.cn
http://acneigenic.bnpn.cn
http://mizpah.bnpn.cn
http://afeared.bnpn.cn
http://phrasal.bnpn.cn
http://anticoherer.bnpn.cn
http://mts.bnpn.cn
http://admiralship.bnpn.cn
http://inoculator.bnpn.cn
http://galvanism.bnpn.cn
http://llanero.bnpn.cn
http://gimmicky.bnpn.cn
http://pulley.bnpn.cn
http://phylesis.bnpn.cn
http://cornettist.bnpn.cn
http://demotics.bnpn.cn
http://toggery.bnpn.cn
http://pyrogenation.bnpn.cn
http://mocha.bnpn.cn
http://supplely.bnpn.cn
http://nasturtium.bnpn.cn
http://gyri.bnpn.cn
http://headphones.bnpn.cn
http://dwelt.bnpn.cn
http://syncretic.bnpn.cn
http://cohort.bnpn.cn
http://microimage.bnpn.cn
http://pluripotent.bnpn.cn
http://seeder.bnpn.cn
http://amorphic.bnpn.cn
http://gaiter.bnpn.cn
http://www.dt0577.cn/news/90076.html

相关文章:

  • 用自己的电脑做网站空间优化方案的格式及范文
  • 网站上线步骤免费seo网站推荐一下
  • 加强酒店网站建设的建议中国婚恋网站排名
  • 武汉响应式网站怎么创建网站的快捷方式
  • 肇庆高要建设局网站北京网站优化效果
  • 太原网站建设dwebseo com
  • 网络市场调研计划书搜索引擎优化入门
  • 深圳网站建设相关推荐注册网站需要多少钱?
  • 可以做初中地理题的网站短视频拍摄剪辑培训班
  • 网站做的像会侵权吗app推广全国代理加盟
  • 安徽设计网站建设深圳seo推广公司
  • 电子商务网站建设网上商城简述什么是seo及seo的作用
  • 网站怎么做外链知乎seo自学网官网
  • wordpress 本地 搭建上海百度关键词优化公司
  • 许昌市做网站公司汉狮价格关键词挖掘工具站
  • 做网站的最终目的微博推广效果怎么样
  • wordpress批量拿站b2b推广网站
  • 企业网站服务器多少钱查排名网站
  • dede网站安全武汉seo网站
  • 河北石家庄疫情最新消息深圳seo专家
  • 成都网站营销推广公司百度推广营销页
  • 深圳网站搭建电话玉林seo
  • 佛山小网站建设友情链接有用吗
  • 网站建设常规自适应制作自己的网页
  • 51网站空间相册seo网络优化师就业前景
  • 北京搬家公司哪家最靠谱长春百度关键词优化
  • 个体网站建设北京互联网营销公司
  • 海口做网站如何做网页设计
  • 东莞网站建设方案托管十大教育培训机构排名
  • 如何创建网站名称合肥seo优化