Skip to content

Commit

Permalink
feat: register title
Browse files Browse the repository at this point in the history
  • Loading branch information
VincePaulin committed Mar 28, 2024
1 parent 6347273 commit 3e06911
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2543,6 +2543,7 @@
"loading_deleteRoom": "Delete the conversation...",
"loading_deleteRoomSuccess": "Conversation deleted",
"refreshList": "Refresh list",
"register_title": "Create your account Tawkie",
"register_confirmPassword": "Confirm your password",
"register_pleaseEnterYourEmail": "Please enter your Email",
"register_pleaseConfirmYourPassword": "Please confirm your password",
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/login/change_username_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class _ChangeUsernamePageState extends State<ChangeUsernamePage> {
// Display a SnackBar to indicate a successful name change
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Changement de nom réussi pour $newUsername'),
content: Text('${L10n.of(context)!.username_success} $newUsername'),
backgroundColor: Colors.green,
),
);
Expand Down
8 changes: 8 additions & 0 deletions lib/pages/register/register_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ class RegisterView extends StatelessWidget {
child: ListView(
padding: const EdgeInsets.symmetric(horizontal: 8),
children: <Widget>[
Text(
L10n.of(context)!.register_title.toUpperCase(),
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 16),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
Expand Down

0 comments on commit 3e06911

Please sign in to comment.