Spellchecking in a dart program - dart

Is there a Dart library that provides access to dictionaries / spellcheckers? General googling around and searching through the PUB has not yielded an answer. Thanks

I don't think there are any Dart libraries to do this. You can use js-interop with a javascript library such as bjspell.
Another option would be to make a HttpRequest to a spell checking service, I think google translate has an api for this.

Related

Google Flatbuffer iOS

Currently, I got a task to explore google flatbuffers on iOS and OSX. I explored the documentation provided by Google.
Also found some libraries on Github on swift language like FlatBuffersSwift and others that implement the flatbuffers.
So, I have mainly two concerns on that
Will Apple approve my app if I used this in my iOS application?
Is it possible to create schema on runtime from JSON ? or we must manually create schemas (.fbs) and use flatc library for creating model binaries (like .swift) files.
Any help please
Thanks in advance
1) There's nothing in the Apple approval process that has to do with your choice of serialization library.
2) To get the benefits of this library, you want to create a schema and generate code for it ahead of compilation time. If your use case is so dynamic that you want to be able to do everything at runtime, you're probably better off with a good JSON library.

Can I access metadata annotations of a type or parameter in flutter?

Or is that capability lost with the loss of the reflect package?
What I'm curious about is can I use annotations in my own flutter app? Or is that a feature only available in dart, but not flutter?
Annotations can only be used for static analysis in Flutter.
For example the analyzer that generates hints and warnings in your IDE, code generation tools like built_value, built_redux, json_serializable, and other packages that use https://github.com/dart-lang/build make use of this.
There is no way to get metadata information at runtime without dart:mirrors.
There is work in progress to make the reflectable package work with code generation. This might work with Flutter eventually to generate code that allows to access predefined metadata at runtime.
See also https://github.com/dart-lang/reflectable/tree/use_build
Yes, of course you can use metadata annotations in flutter. Flutter has a meta-library, which you can look into to know about available annotations that can be used with flutter.
Hope this helped!

Google file picker from Dart

I have learned how to use the Google drive API from Dart. I can't find any documentation on using the Google file picker from Dart.
Any suggestions.
Thanks.
I did not find any better way than using dart:js interop and use google jsclient api. I tried to extract some code I have here: https://github.com/alextekartik/google-jsapi-picker.dart

pthread_rwlock functions missing in libc of ndk?

I am trying to port some c++ code to my android application using NDK.
But the c++ code involves calls to some pthread_rwlock functions which is absent in the libc provided with the NDK.
I have found implementations of these functions but including them, it asks for more header files and more implementations and the problem grows.
Does somebody have a solution to this.
Thanks!
I stumbled over the same issue with NDK r5b where rwlock was in the header but not in the lib.
In the latest r5c this seems resolved.
Android's pthread implementation lacks read/write locks. You'll need to use standard locks instead. A work around may be to write some wrappers that simply use the standard locks. Another approach may be to use Android's atomic APIs to roll your own.
Relevant items in the AOSP bug database:
pthread_rwlock functions are missing
pthread_rwlock static init constant is broken

CPAN/gem-like repository for Objective-C and Cocoa?

Is there any centralized repository of useful Objective-C / Cocoa libraries as there is for Perl, Ruby, Python, etc.?
In building my first iPhone app, I'm finding myself implementing some very basic functions that would be just a quick "gem install" away in Ruby.
There's a project for that! It's called CocoaPods!
Homepage: http://cocoapods.org/
Source: https://github.com/CocoaPods/CocoaPods
Unfortunately not :(
There are some very useful sites however. I find one of the best is cocoadev.com as it contains lots of useful information about many of the more obscure classes usually including snippets of code to do some really cool things :)
Maybe we (the cocoa community) should look into building something like this!
Oh and I just remembered this site cocoadevcentral.com which is also very good for starting out with cocoa.
Daniel mentioned http://cocoadev.com.
More specifically, check out http://www.cocoadev.com/index.pl?ObjectLibrary.
"This page is for tracking re-usable Cocoa classes that can be mixed, matched, and dropped fairly easily into existing Cocoa projects to add useful functionality."
I'd be interested in what kind of "basic functions" you're having to implement. There's actually quite a lot already there in the provided libraries, and I wonder if you're just not finding functionality that's already there...
There's a new index of reusable code for Mac OS and iOS: Cocoa Objects
I might be confused or missing something here... But doesn't apple provide all the Foundation / Cocoa / AppKit / CoreAudio / Qtkit / etc libraries that should provide all of the very basic functions you are looking for?
Other than what xcode comes with or is on the apple dev site, there are no centralized repo's for Cocoa.
Google Code also has some objective C things up. It depends on what you are looking for...
Also see GitHub, many useful Objective-C projects, especially re iPhone. See activerecord & cocoaoniguruma, for instance.
http://github.com/search?q=objective-c
http://github.com/search?q=objc
Google has Google toolbox for mac which got me started unit testing my iPhone application which was the main thing I found missing.

Resources