feat: only one line ssh virt keys (#332)
This commit is contained in:
@@ -2,11 +2,13 @@ import 'package:flutter/material.dart';
|
||||
import 'package:toolbox/core/extension/context/locale.dart';
|
||||
import 'package:toolbox/core/extension/context/snackbar.dart';
|
||||
import 'package:toolbox/core/extension/order.dart';
|
||||
import 'package:toolbox/core/extension/widget.dart';
|
||||
import 'package:toolbox/core/utils/platform/base.dart';
|
||||
import 'package:toolbox/data/model/ssh/virtual_key.dart';
|
||||
import 'package:toolbox/data/res/store.dart';
|
||||
import 'package:toolbox/data/res/ui.dart';
|
||||
import 'package:toolbox/view/widget/cardx.dart';
|
||||
import 'package:toolbox/view/widget/store_switch.dart';
|
||||
|
||||
import '../../../widget/appbar.dart';
|
||||
|
||||
@@ -26,7 +28,22 @@ class _SSHVirtKeySettingPageState extends State<SSHVirtKeySettingPage> {
|
||||
appBar: CustomAppBar(
|
||||
title: Text(l10n.editVirtKeys),
|
||||
),
|
||||
body: _buildBody(),
|
||||
body: Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(7),
|
||||
child: _buildOneLineVirtKey().card,
|
||||
),
|
||||
Expanded(child: _buildBody()),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildOneLineVirtKey() {
|
||||
return ListTile(
|
||||
title: Text(l10n.onlyOneLine),
|
||||
trailing: StoreSwitch(prop: Stores.setting.horizonVirtKey),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user