-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathbackup_card.dart
More file actions
59 lines (56 loc) · 1.78 KB
/
Copy pathbackup_card.dart
File metadata and controls
59 lines (56 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import 'package:bb_mobile/core/themes/app_theme.dart';
import 'package:bb_mobile/core/utils/build_context_x.dart';
import 'package:bb_mobile/core/widgets/text/text.dart';
import 'package:bb_mobile/generated/flutter_gen/assets.gen.dart';
import 'package:flutter/material.dart';
import 'package:bull_ui/bull_ui.dart' show Gap;
class BackupCard extends StatelessWidget {
const BackupCard({super.key, required this.onTap});
final Function onTap;
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () {
onTap();
},
child: Container(
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: context.appColors.secondary,
borderRadius: BorderRadius.circular(2),
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Image.asset(
Assets.misc.passwordbook.path,
height: 32,
width: 32,
color: context.appColors.onSecondary,
),
const Gap(16),
Expanded(
child: Column(
crossAxisAlignment: .start,
children: [
BBText(
context.loc.backupCardTitle,
style: context.font.bodyMedium,
color: context.appColors.onSecondary,
),
BBText(
context.loc.backupCardSubtitle,
style: context.font.bodyMedium,
color: context.appColors.onSecondary,
),
],
),
),
const Gap(8),
Icon(Icons.arrow_forward, color: context.appColors.onSecondary),
],
),
),
);
}
}