File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 23
23
- artchiee - < https://github.com/artchiee >
24
24
- Tejas Bir Singh - < https://github.com/tejasbirsingh >
25
25
- Abhishek Saini - < https://github.com/Abhisheksainii >
26
+ - Shey Alnasrawi - < https://github.com/Milksheyke >
26
27
27
28
## Translators
28
29
Original file line number Diff line number Diff line change 420
420
"@searchExercise": {
421
421
"description": "Label on set form. Selected exercises are added to the set"
422
422
},
423
+ "noMatchingExerciseFound": "لم نجد تمرين بهذا الأسم",
424
+ "@noMatchingExerciseFound": {
425
+ "description": "Message returned if no exercise match the searched string"
426
+ },
423
427
"registerInstead": "ليس لديك حساب ؟ سجّل الان",
424
428
"@registerInstead": {},
425
429
"aboutMastodonTitle": "Mastodon",
Original file line number Diff line number Diff line change 122
122
"@searchExercise": {
123
123
"description": "Label on set form. Selected exercises are added to the set"
124
124
},
125
+ "noMatchingExerciseFound": "No matching exercises found",
126
+ "@noMatchingExerciseFound": {
127
+ "description": "Message returned if no exercises match the searched string"
128
+ },
125
129
"searchNamesInEnglish": "Also search for names in English",
126
130
"supersetWith": "superset with",
127
131
"@supersetWith": {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import 'package:wger/models/workouts/weight_unit.dart';
30
30
import 'package:wger/models/workouts/workout_plan.dart' ;
31
31
import 'package:wger/providers/exercises.dart' ;
32
32
import 'package:wger/providers/workout_plans.dart' ;
33
+ import 'package:wger/screens/add_exercise_screen.dart' ;
33
34
import 'package:wger/screens/workout_plan_screen.dart' ;
34
35
import 'package:wger/widgets/exercises/images.dart' ;
35
36
@@ -423,6 +424,23 @@ class _SetFormWidgetState extends State<SetFormWidget> {
423
424
),
424
425
);
425
426
},
427
+ noItemsFoundBuilder: (context) {
428
+ return Padding (
429
+ padding: const EdgeInsets .symmetric (vertical: 8.0 ),
430
+ child: Column (
431
+ mainAxisSize: MainAxisSize .min,
432
+ children: [
433
+ Text (AppLocalizations .of (context).noMatchingExerciseFound),
434
+ TextButton (
435
+ onPressed: () {
436
+ Navigator .of (context).pushNamed (AddExerciseScreen .routeName);
437
+ },
438
+ child: Text (AppLocalizations .of (context).contributeExercise),
439
+ ),
440
+ ],
441
+ ),
442
+ );
443
+ },
426
444
transitionBuilder: (context, suggestionsBox, controller) {
427
445
return suggestionsBox;
428
446
},
You can’t perform that action at this time.
0 commit comments