Skip to content

Commit

Permalink
feat: back button on details page
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Feb 4, 2025
1 parent 0edbd51 commit e3aa8a7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/widgets/anime/gradient_image.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import 'dart:io';

import 'package:anymex/controllers/settings/methods.dart';
import 'package:anymex/models/Media/media.dart';
import 'package:anymex/widgets/header.dart';
import 'package:anymex/widgets/helper/tv_wrapper.dart';
import 'package:blur/blur.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:kenburns_nullsafety/kenburns_nullsafety.dart';

class GradientPoster extends StatelessWidget {
Expand Down Expand Up @@ -100,6 +104,22 @@ class GradientPoster extends StatelessWidget {
],
),
),
if (Platform.isAndroid || Platform.isIOS)
Positioned(
top: 20,
right: 20,
child: TVWrapper(
margin: 0,
child: IconButton(
style: ElevatedButton.styleFrom(
backgroundColor:
Theme.of(context).colorScheme.surfaceContainer,
),
onPressed: () {
Get.back();
},
icon: const Icon(Icons.close)),
)),
],
);
}
Expand Down

0 comments on commit e3aa8a7

Please sign in to comment.