benyaminbeyzaie / circular_bottom_navigation

Circular bottom navigation is a bottom navigation library for flutter with circular indicator and cool animations.
BSD 3-Clause "New" or "Revised" License
659 stars 97 forks source link

Unable to test with flutter driver #23

Open NiamhG opened 4 years ago

NiamhG commented 4 years ago

There are no options to add a key to the tab items. I attempted to duplicate those locally, but even adding a key to each Position in the stack, it still does not seem to work.

imaNNeo commented 4 years ago

I don't know what are you talking about

NiamhG commented 4 years ago

Sorry. Let me elaborate a bit more.

I am trying to do some integration testing of my app https://flutter.dev/docs/cookbook/testing/integration/introduction

In order to do that, I need to navigate from my home screen to my settings screen, which is a part of your circular bottom navigation (e.g. I have 2 tab items, home and settings). In order to tap the "Settings" icon on the bar, it needs a key. However, your tab item does not have the option to add a key, nor can I see any other way to allow the flutter driver to tap on the tab I want.

I attempted to copy your code locally and add it myself, but couldn't quite mange to get it working. Was not sure if you had any ideas. Let me know if that makes more sense.