Skip to content

Commit

Permalink
Set the correct window title instead of the name from pubspec.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanas committed Jun 1, 2022
1 parent 8ca6f93 commit 0607b40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/constants/app_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const String SHARE_CODE_WITH_RECIPIENT_AND_WAIT_UNTIL_THE_TRANSFER_IS_COMPLETE =
'Share code with recipient & wait until the transfer is complete.';
const String THE_TRANSFER_WILL_AUTO =
'The transfer will automatically begin once the receiver enters the code.';
const String SPACE_AVAILABLE_IS_NOT_ENOUGH =
'Space available is not enough. Please free more space. As a security measure, Destiny cashes the file before sending it.';
const String SEND_THE_SELECTED_CODE_BY_SHARING_THE_CODE_WITH_RECIPIENT =
'Send the selected file by sharing the code with the recipient.';
const String READY_TO_DOWNLOAD = 'Ready to download';
Expand Down Expand Up @@ -146,6 +144,8 @@ const String SETTINGS_SCREEN_BOTTOM_SPACE_PLACEHOLDER =

const String ANDROID_DOWNLOADS_FOLDER_PATH = '/storage/emulated/0/Download';

const String WINDOW_TITLE = "Destiny";

const String ERR_WRONG_CODE_RECEIVER = """Oops..
If you’re sure this is the right code: Either the sender is no longer connected, or the code was already used.
Please ask the sender for a new code and for them to stay connected until you get the file.""";
Expand Down
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class MyApp extends StatelessWidget {
: getDesktopRoutes(config),
builder: (context, widget) {
ScreenUtil.setContext(context);
WidgetsFlutterBinding.ensureInitialized();
setWindowTitle(WINDOW_TITLE);
return MediaQuery(
//Setting font does not change with system font size
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
Expand Down

0 comments on commit 0607b40

Please sign in to comment.