Make chessboard fit its window.
This commit is contained in:
parent
75727980a7
commit
b329cb10ad
@ -26,11 +26,11 @@ class ChessApp extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
|
child: FittedBox(
|
||||||
|
fit: BoxFit.contain,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
FittedBox(
|
Container(
|
||||||
fit: BoxFit.contain,
|
|
||||||
child: Container(
|
|
||||||
margin: const EdgeInsets.all(20),
|
margin: const EdgeInsets.all(20),
|
||||||
child: BlocProvider(
|
child: BlocProvider(
|
||||||
create: (_) => ChessBloc.getInstance(),
|
create: (_) => ChessBloc.getInstance(),
|
||||||
@ -43,7 +43,6 @@ class ChessApp extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
StreamBuilder(
|
StreamBuilder(
|
||||||
stream: ServerConnection.getInstance().channel.stream,
|
stream: ServerConnection.getInstance().channel.stream,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
@ -53,7 +52,9 @@ class ChessApp extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user