mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-04-24 13:40:42 -05:00
[client] reflect folder name in window title
This commit is contained in:
+1
-11
@@ -80,7 +80,7 @@ class PhylumApp extends StatelessWidget {
|
||||
}
|
||||
return MaterialApp.router(
|
||||
key: ValueKey('${account.id}-notready'),
|
||||
title: 'Phylum',
|
||||
title: 'Logging Out | Phylum',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.orange)),
|
||||
darkTheme: ThemeData.dark(),
|
||||
@@ -93,14 +93,4 @@ class PhylumApp extends StatelessWidget {
|
||||
errorBuilder: (context, state) => const AppLogout(),
|
||||
routes: [],
|
||||
);
|
||||
|
||||
MaterialApp createRouter(RouterConfig<Object> router) => MaterialApp.router(
|
||||
key: ValueKey(account),
|
||||
title: 'Phylum',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.orange)),
|
||||
darkTheme: ThemeData.dark(),
|
||||
routerConfig: router,
|
||||
shortcuts: getAppShortcuts(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ class AccountSelector extends StatelessWidget {
|
||||
|
||||
Widget buildLoginPage(BuildContext context) => MaterialApp(
|
||||
key: _loginAppKey,
|
||||
title: 'Phylum',
|
||||
title: 'Login | Phylum',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.orange)),
|
||||
darkTheme: ThemeData.dark(),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:phylum/libphylum/db/db.dart';
|
||||
import 'package:phylum/libphylum/phylum_account.dart';
|
||||
@@ -44,6 +45,9 @@ class _PathViewState extends State<PathView> {
|
||||
void updateStream() {
|
||||
sub?.cancel();
|
||||
sub = context.read<PhylumAccount>().db.parents(id).watch().listen((data) {
|
||||
SystemChrome.setApplicationSwitcherDescription(ApplicationSwitcherDescription(
|
||||
label: "${data[0].name == "" ? "/" : data[0].name} | Phylum",
|
||||
));
|
||||
setState(() {
|
||||
ancestors = data.reversed;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user