Skip to content
Snippets Groups Projects
Select Git revision
  • 868bb1d976d4a29cd6f11af01c0b48f80e647522
  • master default protected
  • 21-add-onlongpress-with-popup-on-parameters
  • 23-center-vertically-buttons
  • 30-highlight-bin-when-selecting-disabled-item
  • 1.0.7 protected
  • 1.0.6 protected
  • 1.0.5 protected
  • 1.0.4 protected
  • 1.0.3 protected
  • 1.0.2 protected
  • 1.0.0 protected
  • 0.9.1 protected
  • 0.9.0 protected
  • 0.8.4 protected
  • 0.8.3 protected
  • 0.8.2 protected
  • 0.8.1 protected
  • 0.8.0 protected
  • 0.7.0 protected
  • 0.6.1 protected
  • 0.6.0 protected
  • 0.5.0 protected
  • 0.4.0 protected
  • 0.3.0 protected
25 results

CHANGELOG.md

Blame
  • To find the state of this project's repository at the time of any of these versions, check out the tags.
    board.dart 914 B
    import 'package:flutter/material.dart';
    
    import '../provider/data.dart';
    
    class Board {
    
      static Container buildGameBoard(Data myProvider) {
        return Container(
          margin: EdgeInsets.all(4),
          padding: EdgeInsets.all(4),
          child: Column(
            children: [
              buildGameTileset(myProvider),
            ],
          ),
        );
      }
    
      static Table buildGameTileset(Data myProvider) {
        int boardSize = myProvider.boardSize;
        List cells = myProvider.cells;
    
        return Table(
          defaultColumnWidth: IntrinsicColumnWidth(),
          children: [
            for (var row = 0; row < boardSize; row++)
              TableRow(children: [
                for (var col = 0; col < boardSize; col++)
                  Column(children: [
                    cells[row][col].widget(
                      myProvider,
                      row,
                      col
                    )
                  ]),
              ]),
          ]
        );
      }
    
    }