Skip to content

Commit

Permalink
updated main file
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshit2756 committed Oct 8, 2024
1 parent 407cfd2 commit a152a03
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 128 deletions.
64 changes: 0 additions & 64 deletions docs/main.dart

This file was deleted.

128 changes: 64 additions & 64 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
import 'package:chess/gameboard.dart';
import 'package:chess/values/colors.dart';

import 'package:device_preview_screenshot/device_preview_screenshot.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
runApp(
DevicePreview(
backgroundColor: backgroundColor,
tools: const [
DeviceSection(
frameVisibility: false,
orientation: false,
),
SystemSection(
locale: false,
theme: true,
),
// AccessibilitySection(
// accessibleNavigation: false,
// boldText: false,
// invertColors: false,
// textScalingFactor: false,
// ),
DevicePreviewScreenshot(),
SettingsSection(),
],
devices: [
Devices.android.samsungGalaxyA50,
Devices.android.samsungGalaxyNote20,
Devices.android.samsungGalaxyS20,
Devices.android.samsungGalaxyNote20Ultra,
Devices.android.onePlus8Pro,
Devices.android.sonyXperia1II,
Devices.ios.iPhoneSE,
Devices.ios.iPhone12,
Devices.ios.iPhone12Mini,
Devices.ios.iPhone12ProMax,
Devices.ios.iPhone13,
Devices.ios.iPhone13ProMax,
Devices.ios.iPhone13Mini,
Devices.ios.iPhoneSE,
],
enabled: true,
builder: (context) => const MyApp(),
),
);
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Chess',
debugShowCheckedModeBanner: false,
locale: DevicePreview.locale(context),
builder: DevicePreview.appBuilder,
home: const GameBoard(),
);
}
}
import 'package:chess/gameboard.dart';
import 'package:chess/values/colors.dart';

import 'package:device_preview_screenshot/device_preview_screenshot.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
runApp(
DevicePreview(
backgroundColor: backgroundColor,
tools: const [
DeviceSection(
frameVisibility: false,
orientation: false,
),
SystemSection(
locale: false,
theme: true,
),
// AccessibilitySection(
// accessibleNavigation: false,
// boldText: false,
// invertColors: false,
// textScalingFactor: false,
// ),
DevicePreviewScreenshot(),
SettingsSection(),
],
devices: [
Devices.android.samsungGalaxyA50,
Devices.android.samsungGalaxyNote20,
Devices.android.samsungGalaxyS20,
Devices.android.samsungGalaxyNote20Ultra,
Devices.android.onePlus8Pro,
Devices.android.sonyXperia1II,
Devices.ios.iPhoneSE,
Devices.ios.iPhone12,
Devices.ios.iPhone12Mini,
Devices.ios.iPhone12ProMax,
Devices.ios.iPhone13,
Devices.ios.iPhone13ProMax,
Devices.ios.iPhone13Mini,
Devices.ios.iPhoneSE,
],
enabled: true,
builder: (context) => const MyApp(),
),
);
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Chess',
debugShowCheckedModeBanner: false,
locale: DevicePreview.locale(context),
builder: DevicePreview.appBuilder,
home: const GameBoard(),
);
}
}

0 comments on commit a152a03

Please sign in to comment.