thirdRow method

Widget thirdRow()

Implementation

Widget thirdRow() {
  return Selector<TappyKeyboardController, TappyAlphanumericKeyboardPane>(
    selector: (ctx, state) => state.pane,
    builder: (ctx, pane, _) {
      final List<Widget> keys = pane == TappyAlphanumericKeyboardPane.letters
          ? [
              Expanded(
                flex: 4,
                child: _shiftKey(),
              ),
              ..._buildLetterKeys(thirdLettersRow()),
              Expanded(
                flex: 5,
                child: _shiftKey(),
              ),
            ]
          : [
              ..._buildLetterKeys(thirdSymbolsRow()),
            ].map<Widget>((e) {
              return Expanded(child: e);
            }).toList();

      return Row(
        children: keys,
      );
    },
  );
}