4 ms·
Flutter is a very leaky abstraction
by n_plus_1_acc 3y ago
Flutter is a very leaky abstraction
- mdhb 3y agoWant to provide some examples?
- n_plus_1_acc 3y agoFor example, there's this package to test Internet connectivity (I know just trying is the best solution). Its readme says > On Android, this does not guarantee connection to Internet. For instance, the app might have wifi access but it might be a VPN or a hotel WiFi with no access. While I unterstand the technical reasons for this limitation, I don't get why it's different on Android. What happens on iOS or web builds? Also check out this FAQ which is full of platform internals which I don't want to care about. If I need to know what permission from the library map to which platform-specific permission, it's not doing a very good job at Abstraktion. And yes, it is a very hard problem. https://pub.dev/packages/permission_handler#faq https://pub.dev/packages/permission_handler#faq