Widget build()

in repo_dashboard/lib/details/roll.dart [20:92]


  Widget build(BuildContext context) {
    final ThemeData theme = Theme.of(context);
    final TextStyle headerStyle =
        theme.textTheme.headline5.copyWith(color: Theme.of(context).primaryColor).apply(fontSizeFactor: 1.3);

    return Theme(
        data: Theme.of(context).copyWith(
          textTheme: Theme.of(context).textTheme.apply(fontSizeFactor: 1.3),
        ),
        child: Row(mainAxisAlignment: MainAxisAlignment.start, children: <Widget>[
          ModelBinding<RollHistory>(
            initialModel: RollHistory(),
            child: RefreshRollHistory(
              child: Expanded(
                child: Column(children: <Widget>[
                  ListTile(
                    title: Text('Roll Commits', style: headerStyle),
                  ),
                  ListTile(
                      title: const Text('Skia → Engine'),
                      subtitle:
                          _DetailItem(value: (RollHistory history) => history.lastSkiaAutoRoll, unit: RollUnits.hour),
                      onTap: () => launch('https://autoroll.skia.org/r/skia-flutter-autoroll')),
                  ListTile(
                      title: const Text('Engine → Framework'),
                      subtitle:
                          _DetailItem(value: (RollHistory history) => history.lastEngineRoll, unit: RollUnits.hour),
                      onTap: () => launch('https://autoroll.skia.org/r/flutter-engine-flutter-autoroll')),
                  ListTile(
                      title: const Text('master → dev channel'),
                      subtitle: _DetailItem(value: (RollHistory history) => history.lastDevBranchRoll),
                      onTap: () => launch('https://github.com/flutter/flutter/commits/dev')),
                  ListTile(
                      title: const Text('dev → beta channel'),
                      subtitle: _DetailItem(value: (RollHistory history) => history.lastBetaBranchRoll),
                      onTap: () => launch('https://github.com/flutter/flutter/commits/beta')),
                  ListTile(
                      title: const Text('beta → stable channel'),
                      subtitle: _DetailItem(value: (RollHistory history) => history.lastStableBranchRoll),
                      onTap: () => launch('https://github.com/flutter/flutter/commits/stable')),
                  ListTile(
                      title: const Text('flutter'),
                      subtitle: _DetailItem(value: (RollHistory history) => history.lastFlutterWebCommit),
                      onTap: () => launch('https://github.com/flutter/flutter/commits/master')),
                ]),
              ),
            ),
          ),
          Expanded(
            child: Column(children: <Widget>[
              ListTile(
                title: Text('Auto Rollers', style: headerStyle),
              ),
              const ModelBinding<RollSheriff>(
                  initialModel: RollSheriff(), child: RefreshSheriffRotation(child: RollSheriffWidget())),
              const ModelBinding<SkiaAutoRoll>(
                  initialModel: SkiaAutoRoll(),
                  child: RefreshEngineFrameworkRoll(
                      child: AutoRollWidget(
                    name: 'Engine → Framework',
                    url: 'https://autoroll.skia.org/r/flutter-engine-flutter-autoroll',
                  ))),
              const ModelBinding<SkiaAutoRoll>(
                  initialModel: SkiaAutoRoll(),
                  child: RefreshSkiaFlutterRoll(
                      child: AutoRollWidget(
                    name: 'Skia → Engine',
                    url: 'https://autoroll.skia.org/r/skia-flutter-autoroll',
                  )))
            ]),
          )
        ]));
  }