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 ..
Category : Dart
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: ..
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 ..
This is a proof of concept and WIP Feedback and ideas welcome !! Access your pubspec and git commit information like versions and commit status from auto-generated widgets. Configure your widgets to display pertinent and always up to date information to your users like the last build version, expose advanced info in production or dev ..
Generative d.Art Demonstrate how to generate your very own #d_Art using Flutter. As a technical point we are NOT relying on Widget but RenderBox directly. Don’t be afraid of those 60 lines of codes & change everything you want (but not the line with Math.Exp, it can damage your computer permanently) Code is tuned to ..
fl_animated_linechart An animated chart library for a flutter. Support for DateTime axis Multiple y-axes, supporting different units Highlight selection Animation of the chart Tested with more than 3000 points and still performing There are currently two different charts: line chart area chart Getting Started Try the sample project or include it in your project. The ..
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 ..
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 ..
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 ..
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 ..
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 ..
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 ..
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 ..
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 ..