Category : Dart

i18n_extension Non-boilerplate Translation and Internationalization (i18n) for Flutter Start with a widget with some text in it: Text(“Hello, how are you?”) Translate it simply by adding .i18n to the string: Text(“Hello, how are you?”.i18n) If the current locale is ‘pt_BR’, then the text in the screen will be “Olá, como vai você?”, the Portuguese translation ..

Read more

import ‘package:flutter/material.dart’; import ‘dart:math’ as math; void main() => runApp(TwitterFab()); class TwitterFab extends StatefulWidget { @override _TwitterFabState createState() => _TwitterFabState(); } class _TwitterFabState extends State<TwitterFab> with SingleTickerProviderStateMixin { TabController controller; @override void initState() { super.initState(); controller = TabController(length: 2, vsync: this); controller.addListener(() { setState(() {}); }); } @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: ..

Read more

Allows user pick a document. Picked document is copied to app temporary directory. Optionally allows pick document with specific extension only. flutter_document_picker Allows user pick a document. Picked document is copied to app temporary directory. Optionally allows pick document with specific extension only. When file is picked its extension is checked using allowedFileExtensions parameter. Then ..

Read more

firebase.dart Firebase dart common interface and implementation for Browser, VM, node, and flutter Firebase Initialization Usage in browser import ‘package:tekartik_firebase_browser/firebase_browser.dart’; void main() { var firebase = firebaseNode; // … } Usage on node import ‘package:tekartik_firebase_node/firebase_node.dart’; void main() { var firebase = firebaseNode; // … } Usage on flutter dependencies: tekartik_firebase_flutter: git: url: git://github.com/tekartik/firebase.dart path: firebase_flutter ..

Read more

sqflite SQLite plugin for Flutter. Supports iOS, Android and MacOS. Support transactions and batches Automatic version management during open Helpers for insert/query/update/delete queries DB operation executed in a background thread on iOS and Android Getting Started In your flutter project add the dependency: For help getting started with Flutter, view the online documentation. Usage example Import sqflite.dart Opening ..

Read more

giphy_client A Giphy API Client for Dart compatible with all platforms Usage First, register an app at the Giphy Developers Portal. Then, follow the instructions below: Features and bugs Please file feature requests and bugs at the issue tracker. Get more details and Sorce Code of giphy client on Pub.Dev FlutterappworldProvides the list of the opensource Flutter ..

Read more

dio A powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout, etc. Get started Add dependency dependencies: dio: 3.x #latest version In order to support Flutter Web, v3.x was heavily refactored, so it was not compatible with version 3.x See here for a detailed list of updates. Super ..

Read more

Flutter Wear Plugin A collection of widgets for developing Wear OS (Android Wear) apps in Flutter. Widgets There currently three widgets provided by the plugin: WatchShape: determines whether the watch is square or round. InheritedShape: an InheritedWidget that can be used to pass the shape of the watch down the widget tree. AmbientMode: builder that ..

Read more

RxDart About RxDart adds additional capabilities to Dart Streams and StreamControllers. Dart comes with a very decent Streams API out-of-the-box; rather than attempting to provide an alternative to this API, RxDart adds functionality from the reactive extensions specification on top of it. RxDart does not provide its own Observable class as a replacement for Dart ..

Read more

url_launcher A Flutter plugin for launching a URL in the mobile platform. Supports iOS and Android. Usage To use this plugin, add url_launcher as a dependency in your pubspec.yaml file. Example import ‘package:flutter/material.dart’; import ‘package:url_launcher/url_launcher.dart’; void main() { runApp(Scaffold( body: Center( child: RaisedButton( onPressed: _launchURL, child: Text(‘Show Flutter homepage’), ), ), )); } _launchURL() async ..

Read more

Shared preferences plugin Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing a persistent store for simple data. Data is persisted to disk asynchronously. Neither platform can guarantee that writes will be persisted to disk after returning and this plugin must not be used for storing critical data. Usage To use this plugin, add shared_preferences ..

Read more