Skip to content

Commit

Permalink
Fix request rewrite list word wrapping (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghongenpin committed Jul 22, 2024
1 parent dd4158d commit 5feb03d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/ui/desktop/toolbar/setting/rewrite/rewrite_update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:network_proxy/network/components/request_rewrite_manager.dart';
import 'package:network_proxy/ui/component/utils.dart';
import 'package:network_proxy/ui/component/widgets.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:network_proxy/utils/lang.dart';

/// @author wanghongen
/// 2023/10/8
Expand Down Expand Up @@ -288,7 +289,7 @@ class _UpdateListState extends State<UpdateList> {
list[index].enabled = val;
})),
const SizedBox(width: 20),
Expanded(child: Text(getText(list[index]), style: const TextStyle(fontSize: 13))),
Expanded(child: Text(getText(list[index]).fixAutoLines(), style: const TextStyle(fontSize: 13))),
],
)));
});
Expand Down
3 changes: 2 additions & 1 deletion lib/ui/mobile/setting/rewrite/rewrite_update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_toastr/flutter_toastr.dart';
import 'package:network_proxy/network/components/request_rewrite_manager.dart';
import 'package:network_proxy/ui/component/widgets.dart';
import 'package:network_proxy/utils/lang.dart';

class RewriteUpdateWidget extends StatefulWidget {
final String subtitle;
Expand Down Expand Up @@ -288,7 +289,7 @@ class _UpdateListState extends State<UpdateList> {
list[index].enabled = val;
})),
const SizedBox(width: 20),
Expanded(child: Text(getText(list[index]), style: const TextStyle(fontSize: 13))),
Expanded(child: Text(getText(list[index]).fixAutoLines(), style: const TextStyle(fontSize: 13))),
],
)));
});
Expand Down
1 change: 1 addition & 0 deletions lib/ui/mobile/setting/ssl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class _AndroidCaInstallState extends State<AndroidCaInstall> with SingleTickerPr
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text(localizations.installRootCa, style: const TextStyle(fontSize: 16)),
bottom: TabBar(
controller: _tabController,
Expand Down

0 comments on commit 5feb03d

Please sign in to comment.