Add link improvements
This commit is contained in:
@@ -107,7 +107,10 @@ class AddLinkModalState extends ConsumerState<AddLinkModal> with SingleTickerPro
|
||||
),
|
||||
),
|
||||
if (provider.checkBookmark != null) ...[
|
||||
const SizedBox(height: 24),
|
||||
const Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16),
|
||||
child: Divider(),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: TextFormField(
|
||||
@@ -125,6 +128,7 @@ class AddLinkModalState extends ConsumerState<AddLinkModal> with SingleTickerPro
|
||||
labelText: t.links.addLink.title,
|
||||
hintText: provider.checkBookmark?.metadata?.title,
|
||||
floatingLabelBehavior: FloatingLabelBehavior.always,
|
||||
helperText: t.links.addLink.leaveEmptyUseWebsiteTitle,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -146,6 +150,7 @@ class AddLinkModalState extends ConsumerState<AddLinkModal> with SingleTickerPro
|
||||
labelText: t.links.addLink.description,
|
||||
hintText: provider.checkBookmark?.metadata?.description,
|
||||
floatingLabelBehavior: FloatingLabelBehavior.always,
|
||||
helperText: t.links.addLink.leaveEmptyUseWebsiteDescription,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
26
lib/screens/links/ui/error_save_link.dart
Normal file
26
lib/screens/links/ui/error_save_link.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:linkdy/i18n/strings.g.dart';
|
||||
|
||||
class ErrorSaveLink extends StatelessWidget {
|
||||
const ErrorSaveLink({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(t.generic.error),
|
||||
content: Text(t.links.addLink.errorSavingLink),
|
||||
actions: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(t.generic.close),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user