From 4bc479d392c65ea6d0fe5806086aa50b043ff0a7 Mon Sep 17 00:00:00 2001 From: Yannick Mauray Date: Fri, 10 Dec 2021 00:55:53 +0100 Subject: [PATCH] Fixed: remove unwanted text. --- .../widgets/home_page/downloader_menu.dart | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/lib/src/widgets/home_page/downloader_menu.dart b/lib/src/widgets/home_page/downloader_menu.dart index 18fdb07..2d8f7fc 100644 --- a/lib/src/widgets/home_page/downloader_menu.dart +++ b/lib/src/widgets/home_page/downloader_menu.dart @@ -28,7 +28,9 @@ class _DownloaderMenuState extends State with PreferencesMixin { Widget build(BuildContext context) { return Expanded( child: Container( - color: Theme.of(context).brightness == Brightness.dark ? Theme.of(context).colorScheme.surface : Theme.of(context).colorScheme.primary, + color: Theme.of(context).brightness == Brightness.dark + ? Theme.of(context).colorScheme.surface + : Theme.of(context).colorScheme.primary, child: Column( children: [ Row( @@ -50,8 +52,11 @@ class _DownloaderMenuState extends State with PreferencesMixin { mainAxisAlignment: MainAxisAlignment.center, children: [ Text( - "Working directory : ${Directory.current.path}", - style: Theme.of(context).textTheme.subtitle1!.copyWith(color: Colors.white), + Directory.current.path, + style: Theme.of(context) + .textTheme + .subtitle1! + .copyWith(color: Colors.white), ), const SizedBox( width: 8, @@ -59,15 +64,19 @@ class _DownloaderMenuState extends State with PreferencesMixin { ElevatedButton( style: ElevatedButton.styleFrom( primary: Theme.of(context).canvasColor, - onPrimary: Theme.of(context).brightness == Brightness.dark ? Colors.white70 : Theme.of(context).colorScheme.primary, + onPrimary: Theme.of(context).brightness == Brightness.dark + ? Colors.white70 + : Theme.of(context).colorScheme.primary, ), onPressed: () async { - var folder = await FilePicker.platform.getDirectoryPath(dialogTitle: "Pick a folder"); + var folder = await FilePicker.platform + .getDirectoryPath(dialogTitle: "Pick a folder"); if (folder != null) { setState(() { Directory.current = folder; }); - savePreference(prefWorkingDirectory, Directory.current.path); + savePreference( + prefWorkingDirectory, Directory.current.path); } }, child: const Icon(Icons.more_horiz),