open_library 0.1.5 copy "open_library: ^0.1.5" to clipboard
open_library: ^0.1.5 copied to clipboard

A flutter package to consume the openlibrary.org api in a simple way

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:open_library/open_library.dart';
import 'screens/book_screen.dart';
import 'package:provider/provider.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Provider(
        create: (_) => OpenLibrary(),
        dispose: (_, OpenLibrary ol) => ol.dispose(),
        child: MaterialApp(
            title: 'Book Example',
            home: BookScreen()
        ));
  }
}
6
likes
110
pub points
42%
popularity

Publisher

verified publisherandreas-lange.eu

A flutter package to consume the openlibrary.org api in a simple way

Repository (GitLab)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

chopper, equatable, flutter, json_annotation

More

Packages that depend on open_library