improved tab handling
This commit is contained in:
@@ -391,6 +391,7 @@ class KagiScreen extends HookConsumerWidget {
|
|||||||
},
|
},
|
||||||
child: switch (displayedSheet) {
|
child: switch (displayedSheet) {
|
||||||
ViewTabs() => DraggableScrollableSheet(
|
ViewTabs() => DraggableScrollableSheet(
|
||||||
|
key: ObjectKey(displayedSheet),
|
||||||
expand: false,
|
expand: false,
|
||||||
minChildSize: 0.1,
|
minChildSize: 0.1,
|
||||||
maxChildSize: _realtiveSafeArea(context),
|
maxChildSize: _realtiveSafeArea(context),
|
||||||
@@ -406,6 +407,7 @@ class KagiScreen extends HookConsumerWidget {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
final CreateTab parameter => DraggableScrollableSheet(
|
final CreateTab parameter => DraggableScrollableSheet(
|
||||||
|
key: ObjectKey(displayedSheet),
|
||||||
expand: false,
|
expand: false,
|
||||||
initialChildSize: 0.8,
|
initialChildSize: 0.8,
|
||||||
minChildSize: 0.1,
|
minChildSize: 0.1,
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class WebViewTab extends HookConsumerWidget {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
ref.read(webViewTabControllerProvider.notifier).showTab(page.key);
|
ref.read(webViewTabControllerProvider.notifier).showTab(page.key);
|
||||||
|
onClose();
|
||||||
} else {
|
} else {
|
||||||
onClose();
|
onClose();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user