lenra_client 2.1.0
lenra_client: ^2.1.0 copied to clipboard
Create your Flutter application with a Lenra backend. Add a LenraApplication at the base of your app and you can use the LenraView widget in your app.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add lenra_client
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
lenra_client: ^2.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lenra_client/application.dart';
import 'package:lenra_client/oauth2.dart';
import 'package:lenra_client/route.dart';
import 'package:lenra_client/socket.dart';
import 'package:lenra_client/socket_helper_io.dart';
import 'package:lenra_client/socket_helper_stub.dart';
import 'package:lenra_client/socket_helper_web.dart';
import 'package:lenra_client/view.dart';
import 'package:lenra_client/widgets.dart';