Fixed: remove unwanted text.

This commit is contained in:
Yannick Mauray 2021-12-10 00:55:53 +01:00
parent 2d7519aee2
commit 4bc479d392
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
1 changed files with 15 additions and 6 deletions

View File

@ -28,7 +28,9 @@ class _DownloaderMenuState extends State<DownloaderMenu> with PreferencesMixin {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Expanded( return Expanded(
child: Container( 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( child: Column(
children: [ children: [
Row( Row(
@ -50,8 +52,11 @@ class _DownloaderMenuState extends State<DownloaderMenu> with PreferencesMixin {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( Text(
"Working directory : ${Directory.current.path}", Directory.current.path,
style: Theme.of(context).textTheme.subtitle1!.copyWith(color: Colors.white), style: Theme.of(context)
.textTheme
.subtitle1!
.copyWith(color: Colors.white),
), ),
const SizedBox( const SizedBox(
width: 8, width: 8,
@ -59,15 +64,19 @@ class _DownloaderMenuState extends State<DownloaderMenu> with PreferencesMixin {
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
primary: Theme.of(context).canvasColor, 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 { 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) { if (folder != null) {
setState(() { setState(() {
Directory.current = folder; Directory.current = folder;
}); });
savePreference(prefWorkingDirectory, Directory.current.path); savePreference(
prefWorkingDirectory, Directory.current.path);
} }
}, },
child: const Icon(Icons.more_horiz), child: const Icon(Icons.more_horiz),