Diego Salvati
Diego Salvati

Reputation: 63

Creating a WearOS app starting from existing Flutter app

I have an existing flutter app and now I want to create a WearOS version of it. I am quite not sure how can I handle this. I already have the main structure of the app organized in folders (app_controller, configuration, core, view). I have mostly 2 doubts:

  1. Do I have to create a new entire project?
  2. Is there a way to render the UI depending on if the device is a phone or a watch?

The app is quite big and I didn't find any example on the internet about this issue. Any example would be great!

EDIT: I have the app config for different flavours (dev, prod, release). Is there a way that the code detect which device is running the app and display a different view for each device?

Thanks all!

Upvotes: 0

Views: 73

Answers (0)

Related Questions