ui: Increase contrast with the cancel buttons

This commit is contained in:
2022-08-17 20:15:56 +02:00
parent 4d6c584841
commit c4fb69b428
3 changed files with 24 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ import 'package:mime/mime.dart';
import 'package:moxxyv2/ui/bloc/navigation_bloc.dart';
import 'package:moxxyv2/ui/bloc/sendfiles_bloc.dart';
import 'package:moxxyv2/ui/constants.dart';
import 'package:moxxyv2/ui/widgets/cancel_button.dart';
import 'package:moxxyv2/ui/widgets/chat/shared/base.dart';
import 'package:moxxyv2/ui/widgets/chat/shared/image.dart';
import 'package:moxxyv2/ui/widgets/chat/shared/video.dart';
@@ -242,9 +243,7 @@ class SendFilesPage extends StatelessWidget {
Positioned(
top: 8,
left: 8,
child: IconButton(
color: Colors.white,
icon: const Icon(Icons.close),
child: CancelButton(
onPressed: () => context.read<NavigationBloc>().add(PoppedRouteEvent()),
),
),

View File

@@ -6,6 +6,7 @@ import 'package:moxxyv2/ui/bloc/cropbackground_bloc.dart';
import 'package:moxxyv2/ui/bloc/navigation_bloc.dart';
import 'package:moxxyv2/ui/constants.dart';
import 'package:moxxyv2/ui/widgets/button.dart';
import 'package:moxxyv2/ui/widgets/cancel_button.dart';
class CropBackgroundPage extends StatefulWidget {
@@ -151,9 +152,7 @@ class CropBackgroundPageState extends State<CropBackgroundPage> {
left: 8,
child: Material(
color: const Color.fromRGBO(0, 0, 0, 0),
child: IconButton(
color: Colors.white,
icon: const Icon(Icons.close),
child: CancelButton(
onPressed: () => context.read<NavigationBloc>().add(PoppedRouteEvent()),
),
),