Gitea CI / Check code and tests (push) Successful in 6m37s
Gitea CI / Build Windows x64 app (push) Successful in 3m18s
Gitea CI / Build Android APK (push) Successful in 3m47s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m7s
Gitea CI / Assemble and validate CI artifacts (push) Successful in 50s
Gitea CI / Gitea CI passed (push) Successful in 2s
Gitea Release / Prepare draft Release (push) Successful in 9s
Gitea Release / Upload Android to draft Release (push) Successful in 16s
Gitea Release / Upload Windows to draft Release (push) Successful in 22s
Gitea Release / Verify and publish Release (push) Successful in 14s
20 lines
524 B
Dart
20 lines
524 B
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
/// Keeps prepared content mounted until the next project is published.
|
|
class ProjectSwitchRegion extends StatelessWidget {
|
|
const ProjectSwitchRegion({
|
|
super.key,
|
|
required this.pendingProjectId,
|
|
required this.child,
|
|
});
|
|
|
|
final String? pendingProjectId;
|
|
final Widget child;
|
|
|
|
@override
|
|
Widget build(BuildContext context) => ExcludeFocus(
|
|
excluding: pendingProjectId != null,
|
|
child: IgnorePointer(ignoring: pendingProjectId != null, child: child),
|
|
);
|
|
}
|