dart_lol 0.0.3 copy "dart_lol: ^0.0.3" to clipboard
dart_lol: ^0.0.3 copied to clipboard

outdated

A Flutter package for League of Legends made in Germany with happiness!

dart_lol, the one good league of legends plugin for flutter #

A German package production :D im 17 btw!!!

Introduction / Einführung #

This is a simple good package for using the League of Legends API (will reference it as LoLApi)

This package is not yet finished an experimental! Please submit any bugs to my github repository and I will try the best in my hands to fix the g0d d4mn3d 3rr0r!

I am going to keep it simple! How to use it properly:

First you have to assign a ApiToken given by LoLApi (You need to wait approximately 3 weeks to get your project verified! Register yours here)

final league = League(apiToken: apiToken);

and furthermore

league.getSummonerInfo(summonerName: 'Ÿurt').then((summonerInfo){
    print(summonerInfo.summonerName);
    // Outputs Ÿurt
    print(summonerInfo.level);
    // Outputs current summoner level
    // etc.
  });

A bigger example to how to use my League package (maybe you can see how it actually appeals with the flutter-ish style :D)

league.getSummonerInfo(summonerName: emre).then((id) {
    final game = league.getGameHistory(accountID: id.accID);
    game.then((gameStat) {

      print(gameStat[1].championName);
      // Always outputs your stats for any game in the List of GameStat

      gameStat[2].stats().then((ok) {

        print(ok.participants[1].summonerName);
        // Outputs the second summoners name
        league
            .getRankInfos(summonerID: ok.participants[6].summonerID)
            .then((rankInfo) {

          print(rankInfo.leaguePoints);
          print(rankInfo.tier);
          // Outputs the sixth summoners current league points and his current tier
        });
      });
    });
  });

If you like my repo and want to help me or whatever, please contact me via Discord or Telegram:

Discord: AaronFanEmre#7866

Telegram: emredev

Thank you very much! Special thanks to you, Flutter! Danke an alle, dass ihr hier seid!

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

10
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package for League of Legends made in Germany with happiness!

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on dart_lol