Skip to content

Commit 1926381

Browse files
authored
Merge pull request #253 from amitamrutiya2210/xirvik
Add changes in login screen url hint textfield
2 parents 873cda7 + df7ae4c commit 1926381

24 files changed

+59
-9
lines changed

lib/Pages/login_screen/login_screen.dart

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class _LoginScreenState extends State<LoginScreen> {
3131
TextEditingController usernameController = new TextEditingController();
3232
TextEditingController passwordController = new TextEditingController();
3333
TextEditingController urlController =
34-
new TextEditingController(text: 'http://localhost:3000');
34+
new TextEditingController(text: 'https://yourserver.xirvik.com');
3535
final _formKey = GlobalKey<FormState>();
3636
late int themeIndex;
3737

@@ -100,7 +100,7 @@ class _LoginScreenState extends State<LoginScreen> {
100100
labelText: l10n.login_screen_url,
101101
prefixIcon: Icons.link,
102102
themeIndex: themeIndex,
103-
trailingIconButton: Align(
103+
trailingIconButton1: Align(
104104
alignment: Alignment.centerRight,
105105
child: IconButton(
106106
onPressed: () {
@@ -120,6 +120,23 @@ class _LoginScreenState extends State<LoginScreen> {
120120
),
121121
),
122122
),
123+
trailingIconButton2: Align(
124+
alignment: Alignment.centerRight,
125+
child: Tooltip(
126+
triggerMode: TooltipTriggerMode.tap,
127+
message:
128+
"URL for your Flood instance (local, seedbox...).",
129+
showDuration: Duration(seconds: 3),
130+
child: Icon(
131+
Icons.info_outline,
132+
color: ThemeBloc.theme(themeIndex)
133+
.textTheme
134+
.bodyLarge!
135+
.color!,
136+
size: 20,
137+
),
138+
),
139+
),
123140
),
124141
SizedBox(
125142
height: hp * 0.01,
@@ -141,7 +158,7 @@ class _LoginScreenState extends State<LoginScreen> {
141158
prefixIcon: Icons.lock_outline,
142159
themeIndex: themeIndex,
143160
obscureText: showPass,
144-
trailingIconButton: Align(
161+
trailingIconButton1: Align(
145162
alignment: Alignment.centerRight,
146163
child: IconButton(
147164
onPressed: () {

lib/Pages/login_screen/widgets/login_screen_textfield.dart

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ class LoginScreenTextField extends StatelessWidget {
77
final String labelText;
88
final IconData prefixIcon;
99
final bool obscureText;
10-
final Widget? trailingIconButton;
10+
final Widget? trailingIconButton1;
11+
final Widget? trailingIconButton2;
1112
final int themeIndex;
1213

1314
const LoginScreenTextField({
1415
required this.controller,
1516
required this.labelText,
1617
required this.prefixIcon,
1718
required this.themeIndex,
18-
this.trailingIconButton,
19+
this.trailingIconButton1,
20+
this.trailingIconButton2,
1921
this.obscureText = false,
2022
Key? key,
2123
}) : super(key: key);
@@ -73,7 +75,13 @@ class LoginScreenTextField extends StatelessWidget {
7375
),
7476
),
7577
),
76-
trailingIconButton ?? Container()
78+
Row(
79+
mainAxisAlignment: MainAxisAlignment.end,
80+
children: [
81+
trailingIconButton1 ?? Container(),
82+
trailingIconButton2 ?? Container(),
83+
],
84+
)
7785
],
7886
),
7987
);

lib/l10n/arb/app_ar.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
"notification_downloading": "جاري التنزيل",
323323
"notification_error": "خطأ في التنزيل",
324324
"notification_finished": "تم التنزيل",
325+
"login_field_tooltip_message": "عنوان URL للمثيل الخاص بك في Flood (محلي، seedbox...)"
325326
"tag_selection_heading": "تفضيلات محدد الوسوم",
326327
"single_selection_radio_button": "اختيار واحد",
327328
"multi_selection_radio_button": "اختيار متعدد",

lib/l10n/arb/app_cs.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
"notification_downloading": "Stahování",
323323
"notification_error": "Chyba při stahování",
324324
"notification_finished": "Stahování dokončeno",
325+
"login_field_tooltip_message": "URL pro vaši Flood instanci (lokální, seedbox...)"
325326
"tag_selection_heading": "Předvolba výběru značek",
326327
"single_selection_radio_button": "Jednoduchý výběr",
327328
"multi_selection_radio_button": "Více výběrů",

lib/l10n/arb/app_de.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,5 +324,6 @@
324324
"sort_by_uploaded": "Hochgeladen",
325325
"sort_by_upload_speed": "Upload-Geschwindigkeit",
326326
"sort_by_file_size": "Dateigröße",
327+
"login_field_tooltip_message": "URL für Ihre Flood-Instanz (lokal, seedbox...)"
327328
"sort_by_percent_completed": "Prozent abgeschlossen","show_progress_bar_option": "Fortschrittsbalken anzeigen"
328329
}

lib/l10n/arb/app_en.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@
336336
"notification_downloading": "Downloading",
337337
"notification_error": "Download Error",
338338
"notification_finished": "Download Finished",
339+
"login_field_tooltip_message" : "URL for your Flood instance (local, seedbox...)."
339340
"tag_selection_heading": "Tag Selector Preference",
340341
"single_selection_radio_button":"Single Selection",
341342
"multi_selection_radio_button":"Multi Selection",

lib/l10n/arb/app_es.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
"notification_downloading": "Descargando",
323323
"notification_error": "Error de descarga",
324324
"notification_finished": "Descarga finalizada",
325+
"login_field_tooltip_message": "URL para su instancia de Flood (local, seedbox...)"
325326
"tag_selection_heading": "Preferencia del selector de etiquetas",
326327
"single_selection_radio_button": "Selección única",
327328
"multi_selection_radio_button": "Selección múltiple",

lib/l10n/arb/app_fi.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
"notification_downloading": "Lataaminen",
323323
"notification_error": "Latausvirhe",
324324
"notification_finished": "Lataus valmis",
325+
"login_field_tooltip_message": "URL Flood-instanssillesi (paikallinen, seedbox...)"
325326
"tag_selection_heading": "Tunnistevalitsimen asetukset",
326327
"single_selection_radio_button": "Yksittäinen valinta",
327328
"multi_selection_radio_button": "Useita valintoja",

lib/l10n/arb/app_fr.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@
323323
"notification_downloading": "Téléchargement",
324324
"notification_error": "Erreur de téléchargement",
325325
"notification_finished": "Téléchargement terminé",
326+
"login_field_tooltip_message": "URL pour votre instance de Flood (locale, seedbox...)"
326327
"tag_selection_heading": "Préférence du sélecteur de balises",
327328
"single_selection_radio_button": "Sélection unique",
328329
"multi_selection_radio_button": "Sélection multiple",
329330
"show_progress_bar_option": "Afficher la barre de progression"
330-
331331
}

lib/l10n/arb/app_hi.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
"notification_downloading": "डाउनलोड हो रहा है",
323323
"notification_error": "डाउनलोड त्रुटि",
324324
"notification_finished": "डाउनलोड समाप्त",
325+
"login_field_tooltip_message": "आपके फ्लड इंस्टेंस के लिए URL (स्थानीय, सीडबॉक्स...)"
325326
"tag_selection_heading": "टैग सिलेक्शन प्राथमिकता",
326327
"single_selection_radio_button": "एकल चयन",
327328
"multi_selection_radio_button": "बहुविकल्पी चयन",

0 commit comments

Comments
 (0)