Github

Android please scan the code to download experience, ios does not have a certificate, can not download.

The project structure

Features of the project

1. Write using MVVM architecture.Simple practice of MVVM architecture in Flutter

2. Provide and use RxDart for detailsSpecial post – dojo.provide Flutter | state management

Introduction to partial packaging

Refresh component: Refresh component is repackaged based on pull_to_refresh. The library itself has some problems, so we changed it. Hopefully this library will continue to be updated, and there are other refresh libraries that I won’t go into here. The main thing is that we should be able to read other people’s component library code when we use it, so as to better solve the problem. It’s also a way of learning.pull__to__refresh

2. OpacityTapWidget: OpacityTapWidget solves two problems:

1) Click effect: The Child has a change in transparency when clicked

2) Hot spot problem: The padding inside the OpacityTapWidget increases the hot spot for clicking.

new OpacityTapWidget(
    onTap: () {
        Navigator.of(context).pop();
    },
    child: new Icon(Icons.close, color: Colors.white,size: 27,),
)
Copy the code

3. TapWidget component: Different from OpacityTapWidget, the effect of TapWidget click is the change of background color.