安卓小煜

Results 10 comments of 安卓小煜

老哥稳,细节问题都考虑到了

@GcsSloop 用了楼主的代码,发现点击check后最后会闪一下。 调试之后发现是由于调用invalidate()时并不会堵塞主线程,是异步问题导致的。 通过在onDraw方法中打印发现绘制了最大页13之后又绘制了12,所以会闪一下。 这边简单修改了下。只改了handle里面的处理: ``` if (animCurrentPage < animMaxPage && animCurrentPage >= 0) { if (animState == ANIM_NULL) return; if (animState == ANIM_CHECK) { animCurrentPage++; } else if (animState...

+10086。希望张哥可以分配一下。避免多个人同时翻译一篇文章,导致做了很多无用功。

Try updating to 1.2.0 and try 'com.github.ybq:Android-SpinKit:1.2.0' @Nikhil-z @Seffah

In AppDelegate.swift, Use UIApplicationLaunchOptionsKey instead of UIApplication.LaunchOptionsKey @link: https://stackoverflow.com/questions/58158130/error-running-on-ios-simulator-with-flutter

解决方法是一次性执行未连接 iOS 设备时的命令,用;分隔。 ``` brew update;brew uninstall --ignore-dependencies libimobiledevice;brew uninstall --ignore-dependencies usbmuxd;brew install --HEAD usbmuxd;brew unlink usbmuxd;brew link usbmuxd;brew install --HEAD libimobiledevice;brew install ideviceinstaller ```

这个是对齐问题 ``` dev_dependencies: flutter_test: sdk: flutter english_words: ^3.1.0 ``` 这样会报错。库要跟flutter_test对齐。所以缩进一下 english_words 行就可以了。 ``` dev_dependencies: flutter_test: sdk: flutter english_words: ^3.1.0 ```

参考 Flutter WIKI 即可 https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps 如果是代码托管到 git 的。则可以适当修改,不需要原生应用和 Flutter 同级。 唯一的区别在于设置 settings.gradle 时路径。

> This is my version of Android Studio. > > ![image](https://user-images.githubusercontent.com/41484434/171311546-69234601-bcc3-490c-8d05-9449a2874147.png) i can install use older version instead of newest version @Primer1889

Q:flutter 在pubspec.yaml添加依赖报错. ``` Error on line 25, column 5 of pubspec.yaml: A dependency may only have one source. sdk: flutter ^^^^^^^^^^^^^ pub get failed (65) ``` A:这个是对齐问题 ``` dev_dependencies: flutter_test:...