bug: can't share server via qr_code (#651)

Fixes #650
This commit is contained in:
lollipopkit🏳️‍⚧️
2024-12-02 22:22:14 +08:00
committed by GitHub
parent 4ace4af7da
commit 3a3c29764a
4 changed files with 15 additions and 9 deletions

View File

@@ -122,7 +122,10 @@ class _ServerDetailPageState extends State<ServerDetailPage>
CustomAppBar _buildAppBar(Server si) { CustomAppBar _buildAppBar(Server si) {
return CustomAppBar( return CustomAppBar(
title: Text(si.spi.name), title: Hero(
tag: 'home_card_title_${si.spi.id}',
child: Text(si.spi.name),
),
actions: [ actions: [
QrShareBtn( QrShareBtn(
data: si.spi.toJsonString(), data: si.spi.toJsonString(),

View File

@@ -461,6 +461,8 @@ class _ServerPageState extends State<ServerPage>
children: [ children: [
ConstrainedBox( ConstrainedBox(
constraints: BoxConstraints(maxWidth: _media.size.width / 2.3), constraints: BoxConstraints(maxWidth: _media.size.width / 2.3),
child: Hero(
tag: 'home_card_title_${s.spi.id}',
child: Text( child: Text(
s.spi.name, s.spi.name,
style: UIs.text13Bold, style: UIs.text13Bold,
@@ -468,6 +470,7 @@ class _ServerPageState extends State<ServerPage>
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
),
const Icon( const Icon(
Icons.keyboard_arrow_right, Icons.keyboard_arrow_right,
size: 17, size: 17,

View File

@@ -478,8 +478,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: "v1.0.218" ref: "v1.0.219"
resolved-ref: b8108c9ffe1e67da22e8f9003e0adfe2692f3b0b resolved-ref: "1b52e9179ded8e0e90d9419a4e6d47c0ef4d1dd0"
url: "https://github.com/lppcg/fl_lib" url: "https://github.com/lppcg/fl_lib"
source: git source: git
version: "0.0.1" version: "0.0.1"

View File

@@ -60,7 +60,7 @@ dependencies:
fl_lib: fl_lib:
git: git:
url: https://github.com/lppcg/fl_lib url: https://github.com/lppcg/fl_lib
ref: v1.0.218 ref: v1.0.219
dependency_overrides: dependency_overrides:
# dartssh2: # dartssh2: