Skip to content

Commit

Permalink
bug: can't share server via qr_code
Browse files Browse the repository at this point in the history
Fixes #650
  • Loading branch information
lollipopkit committed Dec 2, 2024
1 parent 4ace4af commit 2bba5fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
5 changes: 4 additions & 1 deletion lib/view/page/server/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ class _ServerDetailPageState extends State<ServerDetailPage>

CustomAppBar _buildAppBar(Server si) {
return CustomAppBar(
title: Text(si.spi.name),
title: Hero(
tag: 'home_card_title_${si.spi.id}',
child: Text(si.spi.name),
),
actions: [
QrShareBtn(
data: si.spi.toJsonString(),
Expand Down
13 changes: 8 additions & 5 deletions lib/view/page/server/tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,14 @@ class _ServerPageState extends State<ServerPage>
children: [
ConstrainedBox(
constraints: BoxConstraints(maxWidth: _media.size.width / 2.3),
child: Text(
s.spi.name,
style: UIs.text13Bold,
maxLines: 1,
overflow: TextOverflow.ellipsis,
child: Hero(
tag: 'home_card_title_${s.spi.id}',
child: Text(
s.spi.name,
style: UIs.text13Bold,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
),
const Icon(
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "v1.0.218"
resolved-ref: b8108c9ffe1e67da22e8f9003e0adfe2692f3b0b
ref: "v1.0.219"
resolved-ref: "1b52e9179ded8e0e90d9419a4e6d47c0ef4d1dd0"
url: "https://github.com/lppcg/fl_lib"
source: git
version: "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependencies:
fl_lib:
git:
url: https://github.com/lppcg/fl_lib
ref: v1.0.218
ref: v1.0.219

dependency_overrides:
# dartssh2:
Expand Down

0 comments on commit 2bba5fc

Please sign in to comment.