Add new string consts

This commit is contained in:
Ankit Mahato
2023-04-25 07:41:21 +05:30
parent b935763311
commit 022204995d
3 changed files with 6 additions and 3 deletions

View File

@ -423,7 +423,10 @@ const kRaiseIssue =
"\nPlease raise an issue in API Dash GitHub repo so that we can resolve it."; "\nPlease raise an issue in API Dash GitHub repo so that we can resolve it.";
const kHintTextUrlCard = "Enter API endpoint like api.foss42.com/country/codes"; const kHintTextUrlCard = "Enter API endpoint like api.foss42.com/country/codes";
const kLabelPlusNew = "+ New";
const kLabelSend = "Send"; const kLabelSend = "Send";
const kLabelSending = "Sending.."; const kLabelSending = "Sending..";
const kLabelBusy = "Busy"; const kLabelBusy = "Busy";
const kLabelCopy = "Copy"; const kLabelCopy = "Copy";
const kLabelSave = "Save";
const kLabelDownload = "Download";

View File

@ -75,7 +75,7 @@ class _CollectionPaneState extends ConsumerState<CollectionPane> {
size: 20, size: 20,
), ),
label: const Text( label: const Text(
'Save', kLabelSave,
style: kTextStyleButton, style: kTextStyleButton,
), ),
), ),
@ -89,7 +89,7 @@ class _CollectionPaneState extends ConsumerState<CollectionPane> {
.update((state) => newId); .update((state) => newId);
}, },
child: const Text( child: const Text(
'+ New', kLabelPlusNew,
style: kTextStyleButton, style: kTextStyleButton,
), ),
), ),

View File

@ -106,7 +106,7 @@ class _IntroMessageState extends State<IntroMessage> {
child: ElevatedButton( child: ElevatedButton(
onPressed: widget.onNew, onPressed: widget.onNew,
child: const Text( child: const Text(
'+ New', kLabelPlusNew,
style: kTextStyleButton, style: kTextStyleButton,
), ),
), ),