anki_connect_ios 1.0.0 copy "anki_connect_ios: ^1.0.0" to clipboard
anki_connect_ios: ^1.0.0 copied to clipboard

A simple and convenient Flutter package for connecting to AnkiMobile on iOS. Add cards to decks with ease using URL schemes.

Anki Connect iOS #

Flutter package for connecting to AnkiMobile on iOS devices using AnkiMobile's URL scheme.

Setup #

iOS Configuration #

Add the following to your ios/Runner/Info.plist to allow querying AnkiMobile:

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>anki</string>
</array>

AnkiMobile Setup #

Make sure you have AnkiMobile installed from the App Store.

Usage #

import 'package:anki_connect_ios/anki_connect_ios.dart';

// Create the Anki client
final anki = AnkiConnectIOS();

// Check if AnkiMobile is available
bool isAvailable = await anki.isAnkiMobileAvailable();
if (!isAvailable) {
  print('Please install AnkiMobile from the App Store');
  return;
}

// Add a simple card
await anki.addCard(AnkiCard.basic(
  deckName: 'My Japanese Deck',
  front: 'こんにちは',
  back: 'Hello',
  tags: ['japanese', 'greetings'],
));

Acknowledgments #

  • This package uses AnkiMobile's URL scheme documented by Anki
  • Thanks to the Anki team for creating such a great spaced repetition system
  • 元気!
0
likes
160
points
60
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple and convenient Flutter package for connecting to AnkiMobile on iOS. Add cards to decks with ease using URL schemes.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter, super_clipboard, url_launcher

More

Packages that depend on anki_connect_ios