mchess-client/lib/chessapp/chess_app.dart

41 lines
1013 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'chess_board.dart';
class ChessApp extends StatelessWidget {
const ChessApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'mChess',
home: Scaffold(
body: Container(
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Color.fromARGB(255, 20, 20, 20),
Color.fromARGB(255, 30, 30, 30),
Color.fromARGB(255, 40, 40, 40),
],
),
),
child: Center(
child: FittedBox(
fit: BoxFit.contain,
child: Container(
margin: const EdgeInsets.all(20),
child: const ChessBoard(
flipped: false,
),
),
),
),
),
),
);
}
}