Compare commits

...

No commits in common. "master" and "main" have entirely different histories.
master ... main

132 changed files with 146 additions and 107 deletions

View File

View File

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 544 B

View File

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 442 B

View File

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 721 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 68 B

View File

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 68 B

View File

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 68 B

View File

@ -1,65 +1,65 @@
import 'package:flutter/material.dart';
class PongMenu extends StatelessWidget {
// Constructor to initialize the PongMenu with required properties
const PongMenu({
super.key,
required this.title,
required this.subTitle,
required this.child,
});
final String title;
final String subTitle;
final Widget child;
@override
Widget build(BuildContext context) {
// Get the size of the screen
final mq = MediaQuery.of(context).size;
// Calculate the height and width of the dialog
final dialogHeight = mq.height * 0.4;
final dialogWidth = mq.width * 0.8;
// Return a custom-styled Dialog with specified properties
return Dialog(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
elevation: 0,
backgroundColor: Colors.transparent,
child: Container(
width: dialogWidth,
height: dialogHeight,
decoration: BoxDecoration(
color: const Color.fromARGB(255, 33, 33, 33),
borderRadius: BorderRadius.circular(25),
),
child: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
// Display the title with custom styling
Text(
title,
style: const TextStyle(
fontSize: 30,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
// Display the subTitle with custom styling
Text(
subTitle,
style: const TextStyle(
fontSize: 30,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
// Display the child widget
child,
],
),
),
);
}
}
import 'package:flutter/material.dart';
class PongMenu extends StatelessWidget {
// Constructor to initialize the PongMenu with required properties
const PongMenu({
super.key,
required this.title,
required this.subTitle,
required this.child,
});
final String title;
final String subTitle;
final Widget child;
@override
Widget build(BuildContext context) {
// Get the size of the screen
final mq = MediaQuery.of(context).size;
// Calculate the height and width of the dialog
final dialogHeight = mq.height * 0.4;
final dialogWidth = mq.width * 0.8;
// Return a custom-styled Dialog with specified properties
return Dialog(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
elevation: 0,
backgroundColor: Colors.transparent,
child: Container(
width: dialogWidth,
height: dialogHeight,
decoration: BoxDecoration(
color: const Color.fromARGB(255, 33, 33, 33),
borderRadius: BorderRadius.circular(25),
),
child: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
// Display the title with custom styling
Text(
title,
style: const TextStyle(
fontSize: 30,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
// Display the subTitle with custom styling
Text(
subTitle,
style: const TextStyle(
fontSize: 30,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
// Display the child widget
child,
],
),
),
);
}
}

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 520 B

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Some files were not shown because too many files have changed in this diff Show More