mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
updated fixes
This commit is contained in:
@@ -95,3 +95,5 @@ enum EXERCISE_IMAGE_ART_STYLE {
|
||||
/// Colors used for muscles
|
||||
const COLOR_MAIN_MUSCLES = Colors.red;
|
||||
const COLOR_SECONDARY_MUSCLES = Colors.orange;
|
||||
|
||||
const days = 14;
|
||||
|
||||
@@ -648,5 +648,17 @@
|
||||
"quads": "Quads",
|
||||
"arms": "Arms",
|
||||
"sz_bar": "SZ-Bar",
|
||||
"aboutPageTitle": "About Wger"
|
||||
"aboutPageTitle": "About Wger",
|
||||
"verify": "Verify Email",
|
||||
"foo" : "Profile Screen",
|
||||
"foo2" : "You can only contribute exercises if your account is older than {days} days and have verified your email",
|
||||
"@foo2": {
|
||||
"description" : "Number of days before which a person can add exercise",
|
||||
"placeholders": {
|
||||
"days": {
|
||||
"type" : "String",
|
||||
"example" : "world"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:wger/helpers/consts.dart';
|
||||
import 'package:wger/providers/add_exercise.dart';
|
||||
import 'package:wger/providers/exercises.dart';
|
||||
import 'package:wger/screens/exercise_screen.dart';
|
||||
@@ -146,18 +147,16 @@ class _AddExerciseScreenState extends State<AddExerciseScreen> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
'Your profile needs to be verified in order to add any exercise',
|
||||
style: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 30,
|
||||
fontFamily: 'OpenSansBold',
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
AppLocalizations.of(context).foo2(days.toString()),
|
||||
style: Theme.of(context).textTheme.headline4,
|
||||
),
|
||||
SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
ElevatedButton(
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor: MaterialStateProperty.all(Colors.blue),
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pushReplacementNamed(
|
||||
context,
|
||||
@@ -171,13 +170,8 @@ class _AddExerciseScreenState extends State<AddExerciseScreen> {
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(15),
|
||||
child: Text(
|
||||
'Profile Screen',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 15,
|
||||
fontFamily: 'OpenSansBold',
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
AppLocalizations.of(context).foo,
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user