fluxmly 0.1.0 copy "fluxmly: ^0.1.0" to clipboard
fluxmly: ^0.1.0 copied to clipboard

A new Flutter plugin.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fluxmly/fluxmly.dart';
import 'home_page.dart';
import 'routes.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String title = "demo";
  List tracksList;
  int page = 1;

  @override
  void initState() {
    super.initState();
    //初始化喜马拉雅SDK
    initPlatformState();
  }

  initPlatformState() async {
    final res = await Fluxmly.init("APPKEY", "APPSECRET", "PACKID");
    print(res);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      onGenerateRoute: onGenerateRoute,
      home: HomePage(),
    );
  }
}
1
likes
15
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on fluxmly