摘要:
1、获取接口的方法 在service/service_method.dart里制作方法。我们先不接收参数,先把接口调通。 Future getHomePageBeloConten() async{ try{ print('开始获取下拉列表数据.................'); Response 阅读全文
摘要:
1、楼层标题组件 该组件非常简单,只接收一个图片地址,然后显示即可: class FloorTitle extends StatelessWidget { final String picture_address; FloorTitle({this.picture_address}); @overr 阅读全文
摘要:
底栏切换每次都重新请求是一件非常恶心的事,flutter 中提供了AutomaticKeepAliveClientMixin 帮我们完成页面状态保存效果。 1、AutomaticKeepAliveClientMixin AutomaticKeepAliveClientMixin 这个 Mixin 是 阅读全文
摘要:
1、推荐商品类的编写 这个类接收一个List参数,就是推荐商品的列表,这个列表是可以左右滚动的。 /*商品推荐*/class Recommend extends StatelessWidget { final List recommendList; Recommend({Key key, this. 阅读全文