feat(app): compose live Runs with deep links and reconnect retention
This commit is contained in:
+3
-36
@@ -1,40 +1,7 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'shell/adaptive_shell.dart';
|
||||
import 'shell/destination.dart';
|
||||
import 'application/bootstrap.dart';
|
||||
|
||||
export 'application/app.dart' show MyApp;
|
||||
export 'shell/adaptive_shell.dart';
|
||||
export 'shell/destination.dart';
|
||||
|
||||
void main() => runApp(const MyApp());
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key, this.destinationBodies = const {}, this.cupertino});
|
||||
|
||||
final Map<AppDestination, WidgetBuilder> destinationBodies;
|
||||
final bool? cupertino;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final platform = defaultTargetPlatform;
|
||||
if (cupertino ??
|
||||
(platform == TargetPlatform.iOS || platform == TargetPlatform.macOS)) {
|
||||
return CupertinoApp(
|
||||
title: 'Pipelines',
|
||||
home: AdaptiveShell(
|
||||
destinationBodies: destinationBodies,
|
||||
cupertino: true,
|
||||
),
|
||||
);
|
||||
}
|
||||
return MaterialApp(
|
||||
title: 'Pipelines',
|
||||
theme: ThemeData(),
|
||||
darkTheme: ThemeData(brightness: Brightness.dark),
|
||||
themeMode: ThemeMode.system,
|
||||
home: AdaptiveShell(destinationBodies: destinationBodies),
|
||||
);
|
||||
}
|
||||
}
|
||||
void main() => runPipelinesApp();
|
||||
|
||||
Reference in New Issue
Block a user