added macos support and changed gridview count for iphone and macos

main
Oeyuu 2024-06-07 20:43:03 +02:00
parent 5d1cfd60e8
commit 1a3e92483f
3 changed files with 6 additions and 5 deletions

View File

@ -58,14 +58,15 @@ class _PlayerGridViewState extends State<PlayerGridView> {
body: Container( body: Container(
color: isNight color: isNight
? const Color(0xff2d2d2d) ? const Color(0xff2d2d2d)
: Color.fromARGB(255, 194, 216, 225), : const Color.fromARGB(255, 194, 216, 225),
padding: const EdgeInsets.only(left: 15, right: 15), padding: const EdgeInsets.only(left: 15, right: 15),
child: Column( child: Column(
children: [ children: [
Expanded( Expanded(
child: GridView.builder( child: GridView.builder(
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2, crossAxisCount:
MediaQuery.of(context).size.shortestSide < 600 ? 2 : 4,
mainAxisSpacing: 10, mainAxisSpacing: 10,
crossAxisSpacing: 10, crossAxisSpacing: 10,
), ),

View File

@ -227,7 +227,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
LastSwiftUpdateCheck = 0920; LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300; LastUpgradeCheck = 1510;
ORGANIZATIONNAME = ""; ORGANIZATIONNAME = "";
TargetAttributes = { TargetAttributes = {
331C80D4294CF70F00263BE5 = { 331C80D4294CF70F00263BE5 = {

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Scheme <Scheme
LastUpgradeVersion = "1300" LastUpgradeVersion = "1510"
version = "1.3"> version = "1.3">
<BuildAction <BuildAction
parallelizeBuildables = "YES" parallelizeBuildables = "YES"