Remove pink

This commit is contained in:
Feichtmeier 2021-11-08 10:52:04 +01:00
parent 5ba00e9cb4
commit a15772226e
3 changed files with 67 additions and 77 deletions

View File

@ -28,46 +28,43 @@ class _DownloaderMenuState extends State<DownloaderMenu> with PreferencesMixin {
@override
Widget build(BuildContext context) {
return Expanded(
child: Container(
// color: Colors.pink,
child: Column(
children: [
Row(
children: [
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: const [
Padding(
padding: EdgeInsets.symmetric(horizontal: 12),
child: HomePageButtonGroup(),
)
],
),
child: Column(
children: [
Row(
children: [
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: const [
Padding(
padding: EdgeInsets.symmetric(horizontal: 12),
child: HomePageButtonGroup(),
)
],
),
],
),
InkWell(
onTap: () async {
var folder = await FilePicker.platform
.getDirectoryPath(dialogTitle: "Pick a folder");
if (folder != null) {
setState(() {
Directory.current = folder;
});
savePreference(prefWorkingDirectory, Directory.current.path);
}
},
child: Text(
"Working directory : ${Directory.current.path}",
style: Theme.of(context)
.textTheme
.subtitle1!
.copyWith(color: Colors.white),
),
],
),
InkWell(
onTap: () async {
var folder = await FilePicker.platform
.getDirectoryPath(dialogTitle: "Pick a folder");
if (folder != null) {
setState(() {
Directory.current = folder;
});
savePreference(prefWorkingDirectory, Directory.current.path);
}
},
child: Text(
"Working directory : ${Directory.current.path}",
style: Theme.of(context)
.textTheme
.subtitle1!
.copyWith(color: Colors.white),
),
],
),
),
],
),
);
}

View File

@ -34,10 +34,6 @@ class HomePageButton extends StatelessWidget {
),
),
ElevatedButton(
// style: ElevatedButton.styleFrom(
// primary: Colors.white,
// onPrimary: Colors.pink,
// ),
onPressed: onPressed,
child: Padding(
padding: const EdgeInsets.fromLTRB(0, 16, 0, 16),

View File

@ -9,42 +9,39 @@ class MainMenu extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Expanded(
child: Container(
// color: Colors.pink,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
HomePageButton(
onPressed: () {
Navigator.of(context).push(
PageRouteBuilder(
fullscreenDialog: true,
pageBuilder: (context, animation1, animation2) =>
const Manager(),
transitionDuration: Duration.zero,
),
);
},
text: 'Manage existing machines',
),
HomePageButton(
onPressed: () {
//Navigator.of(context).push(MaterialPageRoute(builder: (context) => const DownloaderPage()));
Navigator.of(context).push(
PageRouteBuilder(
fullscreenDialog: true,
pageBuilder: (context, animation1, animation2) =>
const DownloaderPage(),
transitionDuration: Duration.zero,
),
);
},
text: 'Create new machines',
),
],
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
HomePageButton(
onPressed: () {
Navigator.of(context).push(
PageRouteBuilder(
fullscreenDialog: true,
pageBuilder: (context, animation1, animation2) =>
const Manager(),
transitionDuration: Duration.zero,
),
);
},
text: 'Manage existing machines',
),
HomePageButton(
onPressed: () {
//Navigator.of(context).push(MaterialPageRoute(builder: (context) => const DownloaderPage()));
Navigator.of(context).push(
PageRouteBuilder(
fullscreenDialog: true,
pageBuilder: (context, animation1, animation2) =>
const DownloaderPage(),
transitionDuration: Duration.zero,
),
);
},
text: 'Create new machines',
),
],
),
),
);