-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5c8a06
commit 0cbefc8
Showing
7 changed files
with
195 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:miria/model/account.dart'; | ||
import 'package:miria/providers.dart'; | ||
import 'package:miria/state_notifier/drive_page/breadcrumbs_notifier.dart'; | ||
import 'package:miria/view/drive_page/drive_page.dart'; | ||
|
||
class DriveFolderSelectDialog extends StatelessWidget { | ||
const DriveFolderSelectDialog({ | ||
super.key, | ||
required this.account, | ||
}); | ||
|
||
final Account account; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ProviderScope( | ||
overrides: [ | ||
breadcrumbsNotifierProvider.overrideWith(BreadcrumbsNotifier.new), | ||
], | ||
child: Dialog( | ||
child: DrivePage( | ||
account: account, | ||
title: const Text("フォルダを選択"), | ||
floatingActionButtonBuilder: (context, folder) { | ||
return FloatingActionButton.extended( | ||
onPressed: () { | ||
Navigator.of(context).pop((folder,)); | ||
}, | ||
label: const Text("選択"), | ||
icon: const Icon(Icons.check), | ||
); | ||
}, | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters