Skip to content

Commit d67cf47

Browse files
author
darkhan.nausharipov
committed
pre-review fixes (apache#25255)
1 parent eda0bfe commit d67cf47

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

learning/tour-of-beam/frontend/lib/components/profile/user_menu.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ class _Buttons extends StatelessWidget {
132132
builder: (context) => Dialog(
133133
backgroundColor: Colors.transparent,
134134
child: BeamAlertDialog(
135+
body: 'dialogs.deleteAccountWarning'.tr(),
135136
continueLabel: 'ui.deleteMyAccount'.tr(),
136137
title: 'ui.deleteTobAccount'.tr(),
137-
body: 'dialogs.deleteAccountWarning'.tr(),
138138
onContinue: () {
139139
authNotifier.deleteAccount().then(
140140
(_) {

learning/tour-of-beam/frontend/lib/pages/tour/widgets/hints.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import 'package:flutter_svg/svg.dart';
2222
import 'package:playground_components/playground_components.dart';
2323

2424
import '../../../assets/assets.gen.dart';
25-
import '../../../constants/sizes.dart';
2625
import 'markdown/tob_markdown.dart';
2726

2827
class HintsWidget extends StatelessWidget {

learning/tour-of-beam/frontend/lib/pages/tour/widgets/solution_button.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class SolutionButton extends StatelessWidget {
4444
),
4545
),
4646
onPressed: () {
47+
// TODO(nausharipov): resolve the conflict with save user code
4748
showDialog(
4849
context: context,
4950
builder: (context) => Dialog(
@@ -60,11 +61,7 @@ class SolutionButton extends StatelessWidget {
6061
);
6162
},
6263
icon: SvgPicture.asset(Assets.svg.solution),
63-
label: Text(
64-
tourNotifier.isShowingSolution
65-
? 'pages.tour.assignment'
66-
: 'pages.tour.solution',
67-
).tr(),
64+
label: const Text('ui.solution').tr(),
6865
),
6966
);
7067
}

0 commit comments

Comments
 (0)