Bowman74 / fmvvm

An MVVM framework for creating Flutter apps
MIT License
19 stars 7 forks source link

Class names in web release will get minified #24

Open SzunTibor opened 4 years ago

SzunTibor commented 4 years ago

Just a quick heads up that in release mode for web, class names, so ViewModels included, will get minified, so for example navigationService.navigateAndRemoveCurrent<HomePageViewModel>(); wont push 'HomePageView' to RouteSettings.name. Might consider workarounds, like adding

static String route = Core.componentResolver
      .resolveType<ViewLocator>()
      .getViewFromViewModelType<HomePageViewModel>();

instead of const strings.