Rename methods
This commit is contained in:
parent
573ee901c8
commit
01a744ab6a
|
@ -124,7 +124,7 @@ Future<void> showSingleFileDeleteSheet(
|
|||
}
|
||||
}
|
||||
|
||||
Future<void> showInfoSheet(BuildContext context, File file) async {
|
||||
Future<void> showDetailsSheet(BuildContext context, File file) async {
|
||||
final colorScheme = getEnteColorScheme(context);
|
||||
return showBarModalBottomSheet(
|
||||
topControl: const SizedBox.shrink(),
|
||||
|
|
|
@ -372,7 +372,7 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
|
|||
color: Colors.white, //same for both themes
|
||||
),
|
||||
onPressed: () {
|
||||
showInfoSheet(context, file);
|
||||
showDetailsSheet(context, file);
|
||||
},
|
||||
),
|
||||
IconButton(
|
||||
|
|
|
@ -75,7 +75,7 @@ class FadingBottomBarState extends State<FadingBottomBar> {
|
|||
color: Colors.white,
|
||||
),
|
||||
onPressed: () async {
|
||||
await _displayInfo(widget.file);
|
||||
await _displayDetails(widget.file);
|
||||
safeRefresh(); //to instantly show the new caption if keypad is closed after pressing 'done' - here the caption will be updated before the bottom sheet is closed
|
||||
await Future.delayed(
|
||||
const Duration(milliseconds: 500),
|
||||
|
@ -267,7 +267,7 @@ class FadingBottomBarState extends State<FadingBottomBar> {
|
|||
);
|
||||
}
|
||||
|
||||
Future<void> _displayInfo(File file) async {
|
||||
await showInfoSheet(context, file);
|
||||
Future<void> _displayDetails(File file) async {
|
||||
await showDetailsSheet(context, file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue