Remove Cupertino shell branches
Keep the Material-only shell path while preserving public cupertino parameters for callers. Narrow matching tests to Material hosts and behavior because the app always runs under MaterialApp.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import 'package:flutter/gestures.dart' show DragStartBehavior;
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../ui/adaptive/host.dart';
|
||||
import '../ui/adaptive/resize_grip.dart';
|
||||
|
||||
/// How wide the divider's invisible grab area is, centred on its line.
|
||||
@@ -17,12 +15,7 @@ class ListPaneDividerLine extends StatelessWidget {
|
||||
const ListPaneDividerLine({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => usesCupertinoHost(context)
|
||||
? Container(
|
||||
width: 1,
|
||||
color: CupertinoColors.separator.resolveFrom(context),
|
||||
)
|
||||
: const VerticalDivider(width: 1);
|
||||
Widget build(BuildContext context) => const VerticalDivider(width: 1);
|
||||
}
|
||||
|
||||
/// The grab area over [ListPaneDividerLine]: dragging it (mouse or touch)
|
||||
|
||||
Reference in New Issue
Block a user