Remove Cupertino fixture alternatives
Keep capture and probe tooling on the app's single Material surface by removing obsolete platform switches, hosts, and documentation. Preserve the existing Material routes and fixture behavior while retaining compatibility APIs outside this lane.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import 'dart:js_interop';
|
||||
import 'dart:js_interop_unsafe';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:pipelines_app/core/servers/server_catalog.dart';
|
||||
import 'package:pipelines_app/core/servers/server_catalog_store.dart';
|
||||
@@ -11,7 +10,6 @@ import 'package:pipelines_app/features/settings/server_connections.dart';
|
||||
// Isolated, in-memory browser fixture: first write fails, retry succeeds.
|
||||
// No sockets, real storage, or production requests.
|
||||
void main() {
|
||||
final cupertino = Uri.base.queryParameters['host'] == 'cupertino';
|
||||
final connections = ServerConnections(
|
||||
store: _Store(),
|
||||
onSelected: (_) async {},
|
||||
@@ -21,11 +19,7 @@ void main() {
|
||||
child: SavedServersSection(connections: connections),
|
||||
),
|
||||
);
|
||||
runApp(
|
||||
cupertino
|
||||
? CupertinoApp(home: CupertinoPageScaffold(child: body))
|
||||
: MaterialApp(home: Scaffold(body: body)),
|
||||
);
|
||||
runApp(MaterialApp(home: Scaffold(body: body)));
|
||||
}
|
||||
|
||||
class _Store extends MemoryServerCatalogStore {
|
||||
|
||||
Reference in New Issue
Block a user