上一页 1 2 3 4 5 6 ··· 10 下一页

2020年1月21日

摘要: 代码: import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class TopNavigator extends StatelessWidget { 阅读全文
posted @ 2020-01-21 18:53 pp/ing 阅读(218) 评论(0) 推荐(0) 编辑
 
摘要: 代码: ScreenUtil.instance = ScreenUtil(width: 750,height: 1334)..init(context); print('设备像素密度:${ScreenUtil.pixelRatio}'); print('设备高度:${ScreenUtil.scree 阅读全文
posted @ 2020-01-21 17:22 pp/ing 阅读(340) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; import '../service/service_method.dart'; import 'package:flutter_swiper/flutter_swiper.dart'; import 'dart 阅读全文
posted @ 2020-01-21 16:59 pp/ing 阅读(941) 评论(0) 推荐(0) 编辑
 
摘要: service_url.dart 代码 const serviceUrl = 'https://wxmini.baixingliangfan.cn/baixing/'; const servicePath = { 'homePageContent' : serviceUrl + 'wxmini/ho 阅读全文
posted @ 2020-01-21 16:04 pp/ing 阅读(539) 评论(0) 推荐(0) 编辑
 
摘要: 代码头: const HttpHeaders = { 'Accept': 'application/json, text/plain, */*', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'zh-CN,zh;q=0.9', 阅读全文
posted @ 2020-01-21 15:20 pp/ing 阅读(982) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; import 'package:dio/dio.dart'; class HomePage extends StatefulWidget { HomePage({Key key}) : super(key: ke 阅读全文
posted @ 2020-01-21 11:22 pp/ing 阅读(161) 评论(0) 推荐(0) 编辑

2020年1月19日

摘要: 接收器代码: import 'package:flutter/material.dart'; import 'draggable_widget.dart'; class DraggableDemo extends StatefulWidget { DraggableDemo({Key key}) : 阅读全文
posted @ 2020-01-19 19:30 pp/ing 阅读(397) 评论(0) 推荐(0) 编辑
 
摘要: 代码: return Scaffold( appBar: AppBar(title: Text('长按')), body: Center( child: Tooltip(//轻量级控件 包裹的控件 都有长按效果 child: Image.network('http://img.mp.itc.cn/u 阅读全文
posted @ 2020-01-19 17:33 pp/ing 阅读(104) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/cupertino.dart'; class RightBackDemo extends StatelessWidget { const RightBackDemo({Key key}) : super(key: key); @override 阅读全文
posted @ 2020-01-19 17:17 pp/ing 阅读(288) 评论(0) 推荐(0) 编辑

2020年1月16日

摘要: 代码: import 'package:flutter/material.dart'; import 'home_test.dart'; class SplashScreen extends StatefulWidget { SplashScreen({Key key}) : super(key: 阅读全文
posted @ 2020-01-16 17:18 pp/ing 阅读(1127) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页