Metriport Flutter SDK
A Flutter package to render our widget to be able to connect with available providers.
See our developer documentation to get started.
,▄,
▄▓███▌
▄▀╙ ▀▓▀ ²▄
▄└ ╙▌
,▀ ╨▄
▌ ║
▌
▌
,▓██▄ ╔███▄
╙███▌ ▀███▀
▀▄
▀╗▄ ,▄
'╙▀▀▀▀▀╙''
by Metriport Inc.
Run this command:
With Flutter:
$ flutter pub add metriport_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
metriport_flutter: ^1.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:metriport_flutter/metriport_flutter.dart';
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:metriport_flutter/metriport_flutter.dart';
void main() => runApp(const WebViewExample());
class WebViewExample extends StatelessWidget {
const WebViewExample({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Flutter WebView example')),
body: const Column(
children: [
Expanded(
child: WebView(
clientApiKey: "CLIENT_API_KEY",
token: "CONNECT_TOKEN",
colorMode: "dark",
customColor: "green",
sandbox: false,
providers: ["fitbit", "cronometer"],
),
)
],
),
),
);
}
}
Download details:
Author: