Skip to content

Commit fde6ace

Browse files
author
darkhan.nausharipov
committed
showOverlay (apache#25255)
1 parent 09a5526 commit fde6ace

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

learning/tour-of-beam/frontend/lib/components/login/button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class LoginButton extends StatelessWidget {
3030
return TextButton(
3131
onPressed: () {
3232
final closeNotifier = PublicNotifier();
33-
openOverlay(
33+
showOverlay(
3434
context: context,
3535
closeNotifier: closeNotifier,
3636
positioned: Positioned(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Avatar extends StatelessWidget {
3232
return GestureDetector(
3333
onTap: () {
3434
final closeNotifier = PublicNotifier();
35-
openOverlay(
35+
showOverlay(
3636
context: context,
3737
closeNotifier: closeNotifier,
3838
positioned: Positioned(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ import 'package:flutter/material.dart';
2121
import '../../controllers/public_notifier.dart';
2222
import 'widget.dart';
2323

24-
void openOverlay({
24+
void showOverlay({
2525
required BuildContext context,
2626
required PublicNotifier closeNotifier,
2727
required Positioned positioned,
28-
bool isDismissible = true,
28+
bool barrierDismissible = true,
2929
}) {
3030
final overlay = OverlayEntry(
3131
builder: (context) {
3232
return BeamOverlay(
3333
close: closeNotifier.notifyPublic,
34-
isDismissible: isDismissible,
34+
isDismissible: barrierDismissible,
3535
child: positioned,
3636
);
3737
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class BeamOverlays {
2626
Future Function() future,
2727
) async {
2828
final closeNotifier = PublicNotifier();
29-
openOverlay(
29+
showOverlay(
3030
context: context,
3131
closeNotifier: closeNotifier,
32-
isDismissible: false,
32+
barrierDismissible: false,
3333
positioned: Positioned.fill(
3434
child: Container(
3535
alignment: Alignment.center,

0 commit comments

Comments
 (0)