Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Conversation

Alabhya268
Copy link
Contributor

Gallery side - Closes #134
let me know if there is anything that needs to be changed​.

@Alabhya268 Alabhya268 marked this pull request as ready for review October 18, 2020 11:27
@@ -74,6 +85,19 @@ class _PickerDemoState extends State<PickerDemo> {
}
}

Future<void> _showDateRangePicker() async {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this will present the full screen dialog over top of the entire gallery. If its not too much to ask, could you rework the demo a bit to have its own Navigator, like the dialog demo does. That way the picker dialogs will be displayed over top of the demo area only rather than the whole app.

See https://github.com/flutter/gallery/blob/master/lib/demos/material/dialog_demo.dart#L127 for an example of what I mean.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rami-a ,Is there any different way to show picker in demo area? , I tried adding Navigator in picker demo but it's still showing in fullscreen furthermore and dialougs in dialog demo are all also showing in fullscreen .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you add a navigator and then also pass useRootNavigator as false in the showDateRangePicker function does that work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rami-a , Cool it worked, i didn't knew about it , should I make userootnavigator false in all picker?.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! And yes, please make that change for all pickers so they have similar behavior. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made necessary changes please have a look .

@Alabhya268 Alabhya268 marked this pull request as draft October 20, 2020 02:59
@Alabhya268 Alabhya268 marked this pull request as ready for review October 20, 2020 11:05
Copy link
Contributor

@rami-a rami-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for one small change

final picked = await showDatePicker(
useRootNavigator: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I tested this out and for some reason it uses the landscape layout inside and looks a bit cramped, so actually let's remove this here.

final picked = await showTimePicker(
useRootNavigator: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above comment, let's remove this

@rami-a rami-a merged commit 4bcd658 into flutter:master Oct 20, 2020
@rami-a
Copy link
Contributor

rami-a commented Oct 20, 2020

Thanks for all your helpful contributions so far @Alabhya268 !

@Alabhya268
Copy link
Contributor Author

Thanks for all your helpful contributions so far @Alabhya268 !

@rami-a Glad to help, I hope I'm not asking too much but can you please also a look at this Pull Request in flutter/samples repository? as I've made it few days ago but there is still no review on it yet .

@rami-a
Copy link
Contributor

rami-a commented Oct 21, 2020

I've requested reviews from a couple of the maintainers of the flutter/samples repo. They should hopefully take a look soon :)

@Alabhya268
Copy link
Contributor Author

Thanks very much .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Date range picker demo
2 participants