NeonDialog class

Constructors

NeonDialog()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

overlay({required Widget panel, VoidCallback? onBarrier}) → Widget
Barrier + panel bọc trong Stack — render TRONG cây widget (trên Flame). Không tự bọc Positioned.fill: nơi gọi (vd _Overlay trong game_screen.dart) chịu trách nhiệm định vị full-screen, để có thể lồng trong AnimatedSwitcher (Positioned chỉ hợp lệ khi cha trực tiếp là Stack, còn AnimatedSwitcher bọc mỗi child qua FadeTransition). A9: panel scale+fade vào thay vì snap hiện tức thì (TweenAnimationBuilder tự chạy 1 lần lúc mount vì tween bắt đầu từ giá trị mặc định 0).
overlaySlot({required Widget? panel, required Object? panelKey, VoidCallback? onBarrier}) → Widget
Slot overlay LUÔN mount (không bọc if bên ngoài) — cho phép animate cả vào lẫn ra. panel null nghĩa là ẩn (barrier fade ra, panel biến mất qua AnimatedSwitcher); barrier tách riêng khỏi AnimatedSwitcher của panel để tránh double-dim khi cross-fade giữa 2 dialog liên tiếp.
panel({required String title, required Color color, required List<NeonDialogAction> actions, String? message, Widget? content, IconData? icon}) → Widget
Panel hình ảnh thuần (không route) — dùng được cho cả overlay trong game (render TRÊN GameWidget của Flame) lẫn route dialog.
show<T>({required BuildContext context, required String title, required Color color, required List<NeonDialogAction> actions, String? message, Widget? content, IconData? icon, bool dismissible = false}) → Future<T?>
Hiển thị dạng route (dùng cho màn KHÔNG có Flame GameWidget: settings...).