fix: 新增页面背景跟随主题(无壁纸时不再黑底,有壁纸保持透明)
This commit is contained in:
1 parent
3362c8e165
commit
d5f85c01c2
5 files changed
+15
-5
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../../providers/wallpaper_provider.dart';
|
||||
import 'package:xterm/core.dart';
|
||||
import 'package:xterm/ui.dart' show TerminalView;
|
||||
import '../../core/services/ssh_shell_service.dart';
|
||||
@@ -87,9 +88,10 @@ class _TerminalPageState extends State<TerminalPage>
|
||||
),
|
||||
);
|
||||
}
|
||||
final hasWallpaper = context.watch<WallpaperProvider>().hasWallpaper;
|
||||
final active = _sessions[_activeId];
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.transparent,
|
||||
backgroundColor: hasWallpaper ? Colors.transparent : null,
|
||||
appBar: AppBar(
|
||||
title: const Text('终端'),
|
||||
actions: [
|
||||
|
||||
Reference in new issue
Block a user