Skip to content

Latest commit

 

History

History
92 lines (68 loc) · 4.7 KB

README.md

File metadata and controls

92 lines (68 loc) · 4.7 KB

WanAndroid

Download

  • Android: APK 下载
  • iOS: 不上AppStore要安装到设备比较麻烦,有需要的就自己编译使用吧。(我自己就是在iOS设备上使用的😁)
  • 严重推荐编译使用Release版,要比Debug版流畅甚多

Build

  • 我的运行环境(2019-03-17):

    1. 如遇到issue 1中的问题,多半是因为版本号的问题,可以将本地flutter切换到master上去试试看。
    2. 我的flutter doctor
    ➜  ~ flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel master, v1.3.11-pre.37, on Mac OS X 10.14.3 ******, locale
        zh-Hans-HK)
    [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    [!] Android Studio (version 3.3)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [✓] Android Studio
    [!] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [✓] VS Code (version 1.31.1)
    [✓] Connected device (3 available)
    
    ! Doctor found issues in 2 categories.
    
  • Android:@ Flutter Android Release Page

    1. cd wanandroid && flutter build apk
    2. adb install build/app/outputs/apk/release/app-release.apk
  • iOS:@ Flutter iOS Release Page

    1. cd wanandroid && flutter build ios

    2. In Xcode, open Runner.xcworkspace in wanandroid/ios folder.

    3. To ensure that Xcode refreshes the release mode configuration

      In Xcode, go to Product > Scheme > Edit Scheme, then edit the "Run" scheme -- change the "Build Configuration" to "Release" Detail Link

    4. Then Run in Xcode

  • Font:App中自定义了字体NotoSansCJKsc,导致软件增大了13MB,在意的话可以直接在pubspec.ymal中移除。

  • 编译不通过的可以参考issue 1,如果还没解决可以再提哈。

ScreenShots

来讲讲踩过的坑

  1. 使用NestedScrollView的话,里面的ListView不能设置controller,需要使用NotificationListener,见 stackoverflow
  2. 在上面的基础上,没有了controller如何实现类似于controller.animateTo()的功能呢?,答案是直接使用外面那个NestedScrollViewcontroller
  3. TabBarView中嵌套TabBarView,在左右滑动子TabBarView的时候,当子TabBarView没得滑得时候,自动滑动父TabBarView。如何实现,我还没找到合适的方法,知情人士务必告知呀。

Thanks

License

Copyright 2018 Hurshi

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.