本站欢迎大家分享优质的源码和程序, 本站内容来源于作者发布和网络转载,如有版权相关问题请及时与我们取得联系,我们将立即删除。
整整折腾了1天半终于成功吧package上传到了pub上。 先花了15在淘宝找人代注册了个google账户。 先取消配置的环境变量 FLUTTER_STORAGE_BASE_URL https://storage.flutter-io.cn PUB_HOSTED_URL https://pub.flutter-io.cn 然后准备好要上传的package后,装个科学上网我用的佛跳墙,找到代理端口




这个问题看网上有很多解决方法,发现几乎都是错误的,并且麻烦,这里有个简单的方法,借助bottom: MediaQuery.of(context).padding.bottom; 这个bottom的值是系统计算好的,表示屏幕的底部距离,如果输入法被打开了,bottom就等于输入法的高度,如果苹果手机有安全距离,那么bottom也会将安全距离计算进去 非常好用。最终效果就是页面被输入法拖起来,然后出

使用 SingleChildScrollView可以给页面增加滚动: late ScrollController _controller = ScrollController(); SingleChildScrollView( //physics: BouncingScrollPhysics(), //ios风格的上拉出来空白 physics: ClampingScrollPhysics()


Android P行为变更,不可多进程使用同一个目录webView,需要为不同进程webView设置不同目录。 Using WebView from more than one process at once with the same data directory is not supported 解决办法是在Application初始化的时候设置对应的WebView数据目录后缀。 重新运行在


ConstrainedBox( constraints: BoxConstraints.tightFor(width: 140, height: 60), child: RadioListTile(value:0, groupValue: _sortTypeValue, title: Text("从高到低", style: TextStyle( color: Color(