flutter-universal-platform
flutter-universal-platform copied to clipboard
Force a platform type when testing
When running tests, either using variant: TargetPlatformVariant.mobile()
or debugDefaultTargetPlatformOverride
does not cooperate with UniversalPlatform.
Can you add a method, something like testUniversalPlatformOverride = targetPlatformType
to set a platform type for widget testing. Or, perhaps create something that extends from the TestVariant class that could be used.
I would love this as well. This is an extremely useful package, but the lack of testing mechanisms makes it quite hard to use in some cases, which might persuade people to not use the package as a result.