gitmyhub

flutter_wanandroid

Dart ★ 5.7k updated 5y ago

🔥🔥🔥 基于Google Flutter的WanAndroid客户端,支持Android和iOS。包括BLoC、RxDart 、国际化、主题色、启动页、引导页!

A Flutter demo app for the WanAndroid developer community that shows how to build a polished mobile app using the BLoC pattern, Dio networking, and internationalization, last updated 2020.

FlutterDartRxDartDiosetup: moderatecomplexity 2/5

flutter_wanandroid is a mobile application built with Flutter for the WanAndroid platform, a Chinese Android developer community website. The app runs on both Android and iOS and was built to demonstrate Flutter development practices using real-world features. The last recorded update was in 2020, targeting Flutter stable v1.17.0.

The application includes a splash screen, onboarding flow, article lists, and an embedded web view for reading content from the WanAndroid site. It supports theme switching and multi-language display (Chinese and English). List and web views both include a quick-scroll-to-top button, and the app supports a swipe-to-exit gesture.

On the architecture side, this project uses the BLoC pattern for state management, which separates business logic from the user interface by passing data through streams. It also uses RxDart, a library that extends those streams with additional operators. The README provides code examples showing how the project structures its network layer using the Dio HTTP client, how API requests are defined, and how response data is parsed into model objects.

The repository also documents utility libraries used internally for screen size adaptation across different device dimensions, and for internationalization support to display localized strings. These were extracted into separate packages the author made available for other Flutter projects to reuse.

If you are a Flutter developer looking at this for reference, the main value is in seeing how the BLoC pattern, network layer, internationalization, and screen adaptation fit together in a structured project. If you are a non-technical reader, this is a client app for reading Android development articles and tutorials, built as a showcase of Flutter's ability to produce polished mobile apps.

Where it fits