removed outside lines

This commit is contained in:
Andrei Stoica 2024-12-20 13:20:25 -05:00
parent 9b10a34476
commit c8bcf620ef
2 changed files with 17 additions and 1 deletions

View File

@ -187,8 +187,20 @@ class _TTCGameState extends State<TTCGame> {
} }
} }
Border _genCellBorder(
int index, {
BorderSide borderSide = const BorderSide(),
}) {
return Border(
top: index < 3 ? BorderSide.none : borderSide,
bottom: index > 5 ? BorderSide.none : borderSide,
left: [0, 3, 6].contains(index) ? BorderSide.none : borderSide,
right: [2, 5, 8].contains(index) ? BorderSide.none : borderSide,
);
}
Widget _genCell(int index, TTCState state) => Container( Widget _genCell(int index, TTCState state) => Container(
decoration: BoxDecoration(border: Border.all()), decoration: BoxDecoration(border: _genCellBorder(index)),
child: TTCCell( child: TTCCell(
state: state, state: state,
stateSetCallback: () { stateSetCallback: () {

4
todo Normal file
View File

@ -0,0 +1,4 @@
- seperate game logic from widgets to display
- ui with options for super and regular game
- ui for super game
- firebase for multiplayer game