Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow overlap on tabbars #16

Merged
merged 2 commits into from
Sep 13, 2021
Merged

feat: allow overlap on tabbars #16

merged 2 commits into from
Sep 13, 2021

Conversation

yuhao1118
Copy link
Contributor

为所有创建picker实例的静态方法添加overlapTabBar可选属性,允许用户选择picker是否可以遮挡CupertinoTabBar组件。本次提交不会影响兼容性。

Pickers.showDatePicker(
  context,
  mode: DateMode.YM,
  selectDate: curDate,
  minDate: minDate,
  maxDate: maxDate, 
  onConfirm: (p) {
    model.setCurYearMonth(DateTime(p.year!, p.month!));
  }, 
  overlapTabBar: true
);

默认效果(无遮挡):
Snipaste_2021-09-11_00-56-22

开启overlapTabBar: true后:
Snipaste_2021-09-11_00-57-03

@yuhao1118
Copy link
Contributor Author

Todo: rename to useRootNavigator to make it consistent.

@longer96
Copy link
Owner

thank you !!

remove pubspec.lock
@longer96 longer96 merged commit fe8e08a into longer96:master Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants