flutter_sickchill

Flutter package to talk to a SickChill remote instance, for a pure dart package please check sickchill

Setup

To have this package working you need to setup a SickChillScope like this:

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SickChillScope(
      baseUrl: 'http://192.168.1.35:8081',
      apiKey: 'APIKey',
      child: MaterialApp(
        ...
      ),
    );
  }
}

Here you just pass the base url of the remote sickchill instance, after that you can start adding UI to manage SickChill.

Easy usage

The most easy usage is to launch a full screen, to do so use SickChillScreen like this:

Navigator.of(context).push(MaterialPageRoute(builder: (context) => SickChillScreen()));

Custom usage

If the easy usage doesn't fit your need you can use dedicated widgets to build your own interface, here is a list of widget available:

WidgetUsage
SickChillScreenfull screen to see and interact with SickChill instance
TvShowListList of the shows
TvShowListItemShow data in the list view
TvShowGridItemShow data in the grid view
AddShowFloatingButtonFloating button to open screen/dialog to add new show
AddShowContentForm for adding a show
AddShowDialogAddShowContent inside Dialog for adding a show
AddShowScreenAddShowContent inside Screen for adding a show
TvShowScreenScreen for show details
TvShowStatsContent of the first tab of TvShowScreen with basic show info
TvShowSeasonContent of a season tab of TvShowScreen with episodes info

Libraries

flutter_sickchill