♿ Use Solar Network drive hint
This commit is contained in:
@@ -151,6 +151,7 @@
|
|||||||
"recordAudio": "Record Audio",
|
"recordAudio": "Record Audio",
|
||||||
"linkAttachment": "Link Attachment",
|
"linkAttachment": "Link Attachment",
|
||||||
"fileIdCannotBeEmpty": "File ID cannot be empty",
|
"fileIdCannotBeEmpty": "File ID cannot be empty",
|
||||||
|
"fileIdLinkHint": "Haven't upload to the Solar Network? Tap here to open Solar Network Drive to customize your uploads.",
|
||||||
"failedToFetchFile": "Failed to fetch file: {}",
|
"failedToFetchFile": "Failed to fetch file: {}",
|
||||||
"createDirectMessage": "Send new DM",
|
"createDirectMessage": "Send new DM",
|
||||||
"gotoDirectMessage": "Go to DM",
|
"gotoDirectMessage": "Go to DM",
|
||||||
|
@@ -11,6 +11,7 @@ import 'package:material_symbols_icons/symbols.dart';
|
|||||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||||
import 'package:riverpod_paging_utils/riverpod_paging_utils.dart';
|
import 'package:riverpod_paging_utils/riverpod_paging_utils.dart';
|
||||||
import 'package:styled_widget/styled_widget.dart';
|
import 'package:styled_widget/styled_widget.dart';
|
||||||
|
import 'package:url_launcher/url_launcher_string.dart';
|
||||||
|
|
||||||
part 'compose_link_attachments.g.dart';
|
part 'compose_link_attachments.g.dart';
|
||||||
|
|
||||||
@@ -82,7 +83,7 @@ class ComposeLinkAttachment extends HookConsumerWidget {
|
|||||||
notifierRefreshable: cloudFileListNotifierProvider.notifier,
|
notifierRefreshable: cloudFileListNotifierProvider.notifier,
|
||||||
contentBuilder:
|
contentBuilder:
|
||||||
(data, widgetCount, endItemView) => ListView.builder(
|
(data, widgetCount, endItemView) => ListView.builder(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.only(top: 8),
|
||||||
itemCount: widgetCount,
|
itemCount: widgetCount,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
if (index == widgetCount - 1) {
|
if (index == widgetCount - 1) {
|
||||||
@@ -133,6 +134,7 @@ class ComposeLinkAttachment extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
SingleChildScrollView(
|
SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
TextField(
|
TextField(
|
||||||
controller: idController,
|
controller: idController,
|
||||||
@@ -148,6 +150,15 @@ class ComposeLinkAttachment extends HookConsumerWidget {
|
|||||||
FocusManager.instance.primaryFocus?.unfocus(),
|
FocusManager.instance.primaryFocus?.unfocus(),
|
||||||
),
|
),
|
||||||
const Gap(16),
|
const Gap(16),
|
||||||
|
InkWell(
|
||||||
|
child: Text(
|
||||||
|
'fileIdLinkHint',
|
||||||
|
).tr().fontSize(13).opacity(0.85),
|
||||||
|
onTap: () {
|
||||||
|
launchUrlString('https://fs.solian.app');
|
||||||
|
},
|
||||||
|
).padding(horizontal: 14),
|
||||||
|
const Gap(16),
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: TextButton.icon(
|
child: TextButton.icon(
|
||||||
|
Reference in New Issue
Block a user