localsend--localsend
31 行
907 B
Dart
31 行
907 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:localsend_app/gen/strings.g.dart';
|
|
import 'package:localsend_app/widget/dialogs/custom_bottom_sheet.dart';
|
|
import 'package:routerino/routerino.dart';
|
|
|
|
class CancelSessionDialog extends StatelessWidget {
|
|
const CancelSessionDialog();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return CustomBottomSheet(
|
|
title: t.dialogs.cancelSession.title,
|
|
description: t.dialogs.cancelSession.content,
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
children: [
|
|
TextButton(
|
|
onPressed: () => context.pop(false),
|
|
child: Text(t.general.continueStr),
|
|
),
|
|
ElevatedButton.icon(
|
|
onPressed: () => context.pop(true),
|
|
icon: const Icon(Icons.close),
|
|
label: Text(t.general.cancel),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|