Skip to content

Commit

Permalink
Update welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed May 19, 2024
1 parent 6849556 commit 15f62ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion lib/Frontend/intn_defs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ import 'package:intl/intl.dart';
//dart run intl_translation:extract_to_arb --locale=en --output-file='./lib/l10n/messages_en.arb' ./lib/Frontend/intn_defs.dart
//convert to dart
// dart run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/intn_defs.dart lib/l10n/*.arb
String title() => Intl.message('Gear on the Go', name: 'title', desc: 'The name of the app');
String title() => Intl.message('The Tail Company', name: 'title', desc: 'The name of the app');

String subTitle() => Intl.message('All of the Tails', name: 'subTitle', desc: 'The sub-title which displays in the navigation drawer');

String homeNewsTitle() => Intl.message('Fresh from the Tail Blog', name: 'homeNewsTitle', desc: 'The title header for the news in the home screen when no gear is connected');

String homeWelcomeMessageTitle() => Intl.message('Welcome to the Tail Company App', name: 'homeWelcomeMessageTitle', desc: 'The welcome message title on the home screen when no gear is connected');

String homeWelcomeMessage() => Intl.message('You can control, explore and update all your Tail Co gear right here in this app. There are also instructions and guides available too. Happy Wagging!', name: 'homeWelcomeMessage', desc: 'The welcome message on the home screen when no gear is connected');

String shellDeviceBarToggleLabel() => Intl.message('Toggle Gear Bar', name: 'shellDeviceBarToggleLabel', desc: 'Tooltip for the Gear bar display button on the shell / main UI app bar');

String joyStickPage() => Intl.message('Joystick', name: 'joyStickPage', desc: 'The label and title of the joystick page');
Expand Down
5 changes: 3 additions & 2 deletions lib/Frontend/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class _HomeState extends ConsumerState<Home> {
children: <Widget>[
ListTile(
leading: const Icon(Icons.waving_hand),
title: Text(subTitle()),
subtitle: const Text('This is a fan made app to control The Tail Company tails, ears, and wings'),
title: Text(homeWelcomeMessageTitle()),
subtitle: Text(homeWelcomeMessage()),
),
ButtonBar(
children: <Widget>[
Expand Down Expand Up @@ -125,6 +125,7 @@ class _HomeState extends ConsumerState<Home> {
crossFadeState: !bluetoothEnabled ? CrossFadeState.showFirst : CrossFadeState.showSecond,
duration: animationTransitionDuration,
),
ListTile(title: Text(homeNewsTitle(), style: Theme.of(context).textTheme.titleLarge,),),
child!,
],
),
Expand Down

0 comments on commit 15f62ff

Please sign in to comment.