I was skeptical when the author, @slushnys, mentioned:
> I'm no expert in nether Dart nor Flutter
I did find that a battery plugin has been implemented in the Flutter official repo, though: https://github.com/flutter/plugins/blob/master/packages/battery/lib/battery.dart …
Would be worth re-implementing with reference to that 
-
-
-
Yes there is a plugin for that. I have been comparing how easy it is to access native apis tho. You can see that the plugin does exactly what I've written about in the article - it creates a method channel to check the levels of battery. There's still Java and objective-c.
- Još 4 druga odgovora
Novi razgovor -
-
-
Hell, this is why ReactNative was always a non-starter for us.pic.twitter.com/CXEHEcZbGD
-
Calling native APIs from RN is hell - you must create separate package (Java, Obj-C & JS boilerplate projects), npm link does not work, only "hello world" example in the docs & no best practices or standards on how to develop a plugin.
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.