Skip to content

Commit 344342c

Browse files
committed
add changes in login screen url hint textfield
1 parent 5287c7a commit 344342c

27 files changed

+92
-38
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
java-version: '12.x'
1818
- uses: subosito/flutter-action@v1
1919
with:
20-
flutter-version: '3.10.5'
20+
flutter-version: '3.13.1'
2121
- run: flutter pub get
2222
- run: flutter gen-l10n --arb-dir=lib/l10n/arb
2323
- run: flutter analyze

lib/Pages/home_screen/widgets/rss_feed_home_page.dart

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,20 +1011,23 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
10111011
Padding(
10121012
padding:
10131013
const EdgeInsets
1014-
.only(
1014+
.only(
10151015
top: 20),
10161016
child: Column(
10171017
crossAxisAlignment:
10181018
CrossAxisAlignment
10191019
.start,
10201020
children: [
10211021
Padding(
1022-
padding: const EdgeInsets
1022+
padding:
1023+
const EdgeInsets
10231024
.only(
1024-
right: 20,
1025-
left: 20,
1026-
bottom:
1027-
5),
1025+
right:
1026+
20,
1027+
left:
1028+
20,
1029+
bottom:
1030+
5),
10281031
child: Text(
10291032
l10n.selected_magnet_link,
10301033
style: TextStyle(
@@ -1043,7 +1046,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
10431046
),
10441047
Padding(
10451048
padding: const EdgeInsets
1046-
.only(
1049+
.only(
10471050
left:
10481051
20.0,
10491052
right:
@@ -1384,7 +1387,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
13841387
? Padding(
13851388
padding:
13861389
const EdgeInsets
1387-
.only(
1390+
.only(
13881391
top: 8.0),
13891392
child: Container(
13901393
height: 1,

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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,6 @@
321321
"notification_stopped": "تم الإيقاف",
322322
"notification_downloading": "جاري التنزيل",
323323
"notification_error": "خطأ في التنزيل",
324-
"notification_finished": "تم التنزيل"
324+
"notification_finished": "تم التنزيل",
325+
"login_field_tooltip_message": "عنوان URL للمثيل الخاص بك في Flood (محلي، seedbox...)"
325326
}

lib/l10n/arb/app_cs.arb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,6 @@
321321
"notification_stopped": "Zastaveno",
322322
"notification_downloading": "Stahování",
323323
"notification_error": "Chyba při stahování",
324-
"notification_finished": "Stahování dokončeno"
324+
"notification_finished": "Stahování dokončeno",
325+
"login_field_tooltip_message": "URL pro vaši Flood instanci (lokální, seedbox...)"
325326
}

lib/l10n/arb/app_de.arb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,6 @@
321321
"sort_by_uploaded": "Hochgeladen",
322322
"sort_by_upload_speed": "Upload-Geschwindigkeit",
323323
"sort_by_file_size": "Dateigröße",
324-
"sort_by_percent_completed": "Prozent abgeschlossen"
324+
"sort_by_percent_completed": "Prozent abgeschlossen",
325+
"login_field_tooltip_message": "URL für Ihre Flood-Instanz (lokal, seedbox...)"
325326
}

lib/l10n/arb/app_en.arb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@
335335
"notification_stopped": "Stopped",
336336
"notification_downloading": "Downloading",
337337
"notification_error": "Download Error",
338-
"notification_finished": "Download Finished"
338+
"notification_finished": "Download Finished",
339+
"login_field_tooltip_message" : "URL for your Flood instance (local, seedbox...)."
339340
}
340341

lib/l10n/arb/app_es.arb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,6 @@
321321
"notification_stopped": "Detenido",
322322
"notification_downloading": "Descargando",
323323
"notification_error": "Error de descarga",
324-
"notification_finished": "Descarga finalizada"
324+
"notification_finished": "Descarga finalizada",
325+
"login_field_tooltip_message": "URL para su instancia de Flood (local, seedbox...)"
325326
}

lib/l10n/arb/app_fi.arb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,6 @@
321321
"notification_stopped": "Pysähtynyt",
322322
"notification_downloading": "Lataaminen",
323323
"notification_error": "Latausvirhe",
324-
"notification_finished": "Lataus valmis"
324+
"notification_finished": "Lataus valmis",
325+
"login_field_tooltip_message": "URL Flood-instanssillesi (paikallinen, seedbox...)"
325326
}

0 commit comments

Comments
 (0)