Rename methods

This commit is contained in:
ashilkn 2023-03-20 11:16:51 +05:30
parent 573ee901c8
commit 01a744ab6a
3 changed files with 5 additions and 5 deletions

View file

@ -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(),

View file

@ -372,7 +372,7 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
color: Colors.white, //same for both themes
),
onPressed: () {
showInfoSheet(context, file);
showDetailsSheet(context, file);
},
),
IconButton(

View file

@ -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);
}
}