每个项目产品都会让你加埋点,你是愿意花几天一个个加,还是愿意几分钟一个小时加完去喝茶聊天?来试试这520web工具, 高效加埋点,目前我们公司100号前端都在用,因为很好用,所以很自然普及开来了,推荐给大家吧
http://www.520webtool.com/
自己开发所以免费,埋点越多越能节约时间,点两下埋点就加上了,还不会犯错,里面有使用视频,反正免费 😄
如下我导入了一个WebView插件
name: flutter_demo description: A new Flutter application.
dependencies: flutter: sdk: flutter
# The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.0 #如下我导入了一个WebView插件 flutter_webview_plugin: ^0.1.0+1
dev_dependencies: flutter_test: sdk: flutter pubspec.yaml 这个文件相当 AS中的build.gradle
flutter packages get 这个就相当于在AS的Ctrl+9 编译同步,需要在terminal中运行
pubspec.lock 生成对应的版本
flutter_webview_plugin: dependency: "direct main" description: name: flutter_webview_plugin url: "https://pub.dartlang.org" source: hosted version: "0.1.5" 提示热修复无效 请在terminal键入R restart app
Some program elements were changed during reload but did not run when the view was reassembled; you may need to restart the app (by pressing "R") for the changes to have an effect. • _LaunchPage.doubleClick (package:flutter_demo/app/LaunchPage.dart:63) 资源文件找不到异常 解决方法: 大神 何小有的 Blog:https://blog.csdn.net/hekaiyou/article/details/53204466 然后 记得 多flutter run几次
D:\androidSpace\flutter_demo>flutter run Running "flutter packages get" in flutter_demo... Error on line 30, column 4 of pubspec.yaml: Expected a key while parsing a block mapping. assets: ^ pub get failed (65) 每次更新完flutterSDK都是一脸懵逼 解决 :https://github.com/flutter/flutter/wiki/Using-Flutter-in-China 配置环境变量
export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn C:\Users\Administrator>flutter Updating flutter tool... Got socket error trying to find package mockito at https://pub.dartlang.org. Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... 远程荡下来的项目 需要修改 local.properties 这个文件参数 这三个都是需要手动配置的
sdk.dir=D:/android_sdk flutter.sdk=D:\\flutter flutter.buildMode=debug Finished with error: Please review your Gradle project setup in the android/ folder. * Error running Gradle: Exit code 1 from: F:\AndroidWorkSpace\Flutter_Gank\android\gradlew.bat app:properties:
FAILURE: Build failed with an exception.
* Where: Build file 'F:\AndroidWorkSpace\Flutter_Gank\android\build.gradle' line: 26
* What went wrong: A problem occurred evaluating root project 'android'. > A problem occurred configuring project ':app'. > The SDK directory 'D:\android_sdk' does not exist. 外部类不能以下划线开始命名
error: The name '_Page' isn't a type so it can't be used as a type argument. (non_type_as_type_argument at [flutter_demo] lib\app\FirstPage.dart:16) 1 showSnackbar异常 Scaffold 赋 key 为_scaffoldKey 这个全局变量即可
Scaffold.of(context).showSnackBar( new SnackBar(content: new Text(url))); ============================================================== final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>(); key: _scaffoldKey, _scaffoldKey.currentState.showSnackBar( new SnackBar(content: new Text(url))); --------------------- 作者:拍砖哥 来源: 原文:https://blog.csdn.net/qq_20330595/article/details/80004023 版权声明:本文为博主原创文章,转载请附上博文链接!