Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

I am trying to use fandom: ^1.0.1 but it isn't working #1

Open
MdRahmatUllah opened this issue Mar 20, 2022 · 0 comments
Open

I am trying to use fandom: ^1.0.1 but it isn't working #1

MdRahmatUllah opened this issue Mar 20, 2022 · 0 comments

Comments

@MdRahmatUllah
Copy link

import 'dart:convert';

import 'package:fandom/src/fandom.dart';
import 'package:http/http.dart' as http;

Future<void> main() async {
  var fandom = Fandom('https://marvel.fandom.com',
      (path) => http.get(path).then((value) => json.decode(value.body)));
  var result = await fandom.search.list('Wolverine');
  print('result: ${result.items.first.snippet}');
}

Here path it shows path is not a Uri and if I use the path as Uri then I got an unhandled exception

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant