Skip to content

Commit f1a2cec

Browse files
author
darkhan.nausharipov
committed
comment fixes (apache#25255)
1 parent 8c3e4b5 commit f1a2cec

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

playground/frontend/playground_components/lib/src/widgets/overlay/overlays.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import 'package:flutter/material.dart';
2121
import '../../../playground_components.dart';
2222

2323
class BeamOverlays {
24-
// TODO(nausharipov) review: add label?
25-
// TODO(nausharipov) review: add grey-ish background?
2624
static Future<void> showProgressOverlay(
2725
BuildContext context,
2826
Future Function() future,
@@ -32,9 +30,11 @@ class BeamOverlays {
3230
context: context,
3331
closeNotifier: closeNotifier,
3432
isDismissible: false,
35-
positioned: const Positioned.fill(
36-
child: Align(
37-
child: CircularProgressIndicator(),
33+
positioned: Positioned.fill(
34+
child: Container(
35+
alignment: Alignment.center,
36+
color: Theme.of(context).dialogBackgroundColor.withOpacity(0.2),
37+
child: const CircularProgressIndicator(),
3838
),
3939
),
4040
);

playground/frontend/playground_components/lib/src/widgets/overlay/widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ import 'package:flutter/material.dart';
2020

2121
class BeamOverlay extends StatelessWidget {
2222
final VoidCallback close;
23-
final Positioned child;
2423
final bool isDismissible;
24+
final Positioned child;
2525

2626
const BeamOverlay({
2727
required this.close,
28-
required this.child,
2928
required this.isDismissible,
29+
required this.child,
3030
});
3131

3232
@override

0 commit comments

Comments
 (0)