nausharipov commented on code in PR #25347:
URL: https://github.com/apache/beam/pull/25347#discussion_r1098348963
##########
learning/tour-of-beam/frontend/lib/pages/tour/widgets/solution_button.dart:
##########
@@ -42,7 +43,23 @@ class SolutionButton extends StatelessWidget {
: null,
),
),
- onPressed: tourNotifier.toggleShowingSolution,
+ onPressed: () {
+ // TODO(nausharipov): resolve the conflict with save user code
+ showDialog(
+ context: context,
+ builder: (context) => Dialog(
+ backgroundColor: Colors.transparent,
+ child: BeamAlertDialog(
Review Comment:
Moved `Dialog` into BeamAlertDialog, because future users of the widget
might not know about the
```
Future<void> show(BuildContext context) async {
await showDialog(
context: context,
builder: build,
);
}
```
function and use showDialog.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]