spotikit 0.0.24 copy "spotikit: ^0.0.24" to clipboard
spotikit: ^0.0.24 copied to clipboard

PlatformAndroid

Flutter plugin for Spotify integration with Android App Remote and Web API support.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:spotikit/spotikit.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Three Buttons App',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  HomePageState createState() => HomePageState();
}

class HomePageState extends State<HomePage> {
  bool _ready = false;

  @override
  void initState() {
    super.initState();
    run();
  }

  void run() async{
    await Spotikit.authenticateSpotify();
    // final token = await Spotikit.getAccessToken();
    // print("Access Token: $token");
  }


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Three Buttons Page'),
        centerTitle: true,
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            IconButton(
              onPressed: null,
              icon: Icon(Icons.home),
              iconSize: 50,
            ),
            SizedBox(height: 20),
            IconButton(
              onPressed: null,
              icon: Icon(Icons.favorite),
              iconSize: 50,
            ),
            SizedBox(height: 20),
            IconButton(
              onPressed: null,
              icon: Icon(Icons.star),
              iconSize: 50,
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
150
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for Spotify integration with Android App Remote and Web API support.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, http, logger, path, plugin_platform_interface, yaml

More

Packages that depend on spotikit

Packages that implement spotikit