stryder-dev / flutter_platform_widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets
MIT License
1.58k stars 171 forks source link

Use kThemeAnimationDuration from material #383

Closed DFelten closed 1 year ago

DFelten commented 1 year ago

With Flutter 3.7 there is a import conflict that the variable kThemeAnimationDuration is defined in both PlatformApp and Theme.dart. I see no reason why we should define it ourselves and not use it from Theme.

Error:

Error: 'kThemeAnimationDuration' is imported from both 'package:flutter/src/material/theme.dart' and 'package:flutter_platform_widgets/src/platform_app.dart'.

Therefore, I removed the variable and used the identical one from Material.