96de9f5bea
Keep the Material-only conversation implementation while preserving public Cupertino parameters for callers. Narrow affected tests to Material hosts so the dead platform paths are no longer exercised.
25 lines
766 B
Dart
25 lines
766 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// The open chat's Next chat button: the platform's icon button, labelled
|
|
/// "Next chat", that opens the chat after this one in the list.
|
|
///
|
|
/// It stays in the bar rather than leaving for the More menu on a narrow
|
|
/// bar (it is not [SegmentedOverflowable]): it is the one-tap way to cycle
|
|
/// chats on a phone, so the title gives up the room instead.
|
|
class ChatNextChatButton extends StatelessWidget {
|
|
const ChatNextChatButton({super.key, required this.onPressed});
|
|
|
|
static const label = 'Next chat';
|
|
|
|
final VoidCallback onPressed;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return IconButton(
|
|
tooltip: label,
|
|
onPressed: onPressed,
|
|
icon: const Icon(Icons.keyboard_tab),
|
|
);
|
|
}
|
|
}
|