Skip to content

refactor DeviceScreenType::index, so that enumeration instances can be compared#66

Open
Hu-Wentao wants to merge 1 commit intoFilledStacks:masterfrom
Hu-Wentao:master
Open

refactor DeviceScreenType::index, so that enumeration instances can be compared#66
Hu-Wentao wants to merge 1 commit intoFilledStacks:masterfrom
Hu-Wentao:master

Conversation

@Hu-Wentao
Copy link

final tp = getDeviceType(MediaQuery.of(context).size);
    if(tp.index>DeviceScreenType.mobile.index){
      // do ...
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant