A wanandroid.com client written by Flutter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

WanAndroid

Download

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

Build

  • 我的运行环境(2018-11-01):

    1. 我本地flutter版本是v0.10.2-pre.130,在flutter master branch,flutte sdk-archive

    2. 如遇到issue 1中的问题,多半是因为版本号的问题,可以将本地flutter切换到master上去试试看。

    3. flutter doctor

      ➜  ~ flutter doctor
      Doctor summary (to see all details, run flutter doctor -v):
      [✓] Flutter (Channel master, v0.10.2-pre.130, on Mac OS X 10.14.1 ******, locale
          zh-Hans-HK)
      [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
      [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
      [✓] Android Studio (version 3.2)
      [!] 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.28.0)
      [✓] Connected device (1 available)
      
      ! Doctor found issues in 1 category.
      
      
  • Android:@ Flutter Android Release Page

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

     cd wanandroid/
     flutter build ios
     In Xcode, open Runner.xcworkspace in wanandroid/ios folder.
     run...
    
  • 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.