Complete Material-only APIs and fixtures
Remove obsolete control-family flags and icon metadata across all callers, dead alternate themes and host helpers, obsolete test setup, and the unused icon-font dependency. Preserve native Material Back transitions. Make navigation fixtures independent of update plugins and answer auxiliary shell snapshots so the complete application suite can run deterministically.
This commit is contained in:
@@ -9,16 +9,10 @@ const String chatImageViewerClose = 'Close';
|
||||
/// One attached image full screen: pinch or scroll to zoom, drag to pan once
|
||||
/// zoomed, and the host's own close control in the navigation bar.
|
||||
class ChatImageViewer extends StatelessWidget {
|
||||
const ChatImageViewer({
|
||||
super.key,
|
||||
required this.name,
|
||||
required this.bytes,
|
||||
required this.cupertino,
|
||||
});
|
||||
const ChatImageViewer({super.key, required this.name, required this.bytes});
|
||||
|
||||
final String name;
|
||||
final Uint8List bytes;
|
||||
final bool cupertino;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -45,7 +39,6 @@ class ChatImageViewer extends StatelessWidget {
|
||||
extendBodyBehindAppBar: true,
|
||||
backgroundColor: Colors.black,
|
||||
appBar: SegmentedBar(
|
||||
cupertino: false,
|
||||
automaticallyImplyLeading: false,
|
||||
leading: IconButton(
|
||||
key: const Key('chat-image-viewer-close'),
|
||||
@@ -68,9 +61,8 @@ Future<void> openChatImageViewer(
|
||||
BuildContext context, {
|
||||
required String name,
|
||||
required Uint8List bytes,
|
||||
required bool cupertino,
|
||||
}) {
|
||||
final page = ChatImageViewer(name: name, bytes: bytes, cupertino: cupertino);
|
||||
final page = ChatImageViewer(name: name, bytes: bytes);
|
||||
return Navigator.of(
|
||||
context,
|
||||
).push(MaterialPageRoute<void>(fullscreenDialog: true, builder: (_) => page));
|
||||
|
||||
Reference in New Issue
Block a user