Browse Source

UI update text

pull/18/head
Sun 4 years ago
parent
commit
1f618b8616
  1. 3
      lib/global.dart
  2. 1
      lib/l10n/localizations.dart
  3. 4
      lib/l10n/localizations_en.dart
  4. 4
      lib/l10n/localizations_zh.dart
  5. 5
      lib/pages/setting/about.dart
  6. 2
      lib/pages/setting/preference.dart
  7. 2
      lib/utils/home_dir.dart

3
lib/global.dart

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
class Global {
static String gid = "0000000000000000000000000000000000000000000000000000000000000000";
static String version = 'v0.2.0';
static String gid = '0000000000000000000000000000000000000000000000000000000000000000';
static String httpRpc = '127.0.0.1:8000';
static String wsRpc = '127.0.0.1:8080';
//static String httpRpc = '192.168.2.148:8001'; // test code

1
lib/l10n/localizations.dart

@ -167,7 +167,6 @@ abstract class AppLocalizations { @@ -167,7 +167,6 @@ abstract class AppLocalizations {
String get memory;
String get swap;
String get disk;
String get about1;
String get about2;
String get donate;
String get website;

4
lib/l10n/localizations_en.dart

@ -5,7 +5,7 @@ class AppLocalizationsEn extends AppLocalizations { @@ -5,7 +5,7 @@ class AppLocalizationsEn extends AppLocalizations {
AppLocalizationsEn();
@override
String get title => 'Encrypted Secure Session Engine.';
String get title => 'Encrypted Secure Session Engine';
@override
String get ok => 'OK';
@override
@ -247,8 +247,6 @@ class AppLocalizationsEn extends AppLocalizations { @@ -247,8 +247,6 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get deviceQrcodeIntro => 'Tips: Scan to Login and sync, use it with care, and do not tell others';
@override
String get about1 => 'ESSE (Encrypted Symmetrical Session Engine)';
@override
String get about2 => 'An open source encrypted peer-to-peer session system would allow data to be sent securely from one terminal to another without going through third-party services.';
@override
String get donate => 'Donate';

4
lib/l10n/localizations_zh.dart

@ -5,7 +5,7 @@ class AppLocalizationsZh extends AppLocalizations { @@ -5,7 +5,7 @@ class AppLocalizationsZh extends AppLocalizations {
AppLocalizationsZh();
@override
String get title => '加密安全会话引擎';
String get title => '加密安全会话引擎';
@override
String get ok => '确认';
@override
@ -247,8 +247,6 @@ class AppLocalizationsZh extends AppLocalizations { @@ -247,8 +247,6 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get deviceQrcodeIntro => '扫码登陆与同步账户,小心使用,请勿告知他人';
@override
String get about1 => 'ESSE (加密对称会话引擎)';
@override
String get about2 => '一款开源的加密对等通信系统,允许信息安全地从发送端经由网络直接到达接收端而不用经过第三方服务。';
@override
String get donate => '捐助';

5
lib/pages/setting/about.dart

@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:esse/l10n/localizations.dart';
import 'package:esse/global.dart';
class AboutDetail extends StatefulWidget {
AboutDetail({Key? key}) : super(key: key);
@ -21,7 +22,9 @@ class _AboutDetailState extends State<AboutDetail> { @@ -21,7 +22,9 @@ class _AboutDetailState extends State<AboutDetail> {
final lang = AppLocalizations.of(context);
return Column(
children: [
Text(lang.about1, style: Theme.of(context).textTheme.headline6),
Text('ESSE ' + Global.version, style: Theme.of(context).textTheme.headline6),
const SizedBox(height: 10.0),
Text(lang.title, style: Theme.of(context).textTheme.headline6),
const SizedBox(height: 10.0),
Text(lang.about2, style: Theme.of(context).textTheme.headline6),
const SizedBox(height: 15.0),

2
lib/pages/setting/preference.dart

@ -28,7 +28,7 @@ class _PreferenceDetailState extends State<PreferenceDetail> { @@ -28,7 +28,7 @@ class _PreferenceDetailState extends State<PreferenceDetail> {
padding: EdgeInsets.only(left: 20, right: 20),
decoration: BoxDecoration(
color: color.surface,
borderRadius: BorderRadius.circular(15.0)),
borderRadius: BorderRadius.circular(10.0)),
child: DropdownButtonHideUnderline(
child: Theme(
data: Theme.of(context).copyWith(

2
lib/utils/home_dir.dart

@ -5,7 +5,7 @@ import 'package:path_provider/path_provider.dart'; @@ -5,7 +5,7 @@ import 'package:path_provider/path_provider.dart';
Future<String> homeDir() async {
final directory = await getApplicationDocumentsDirectory();
//final directory = await getExternalStorageDirectory();
final myDir = new Directory(directory.path + '/esse');
final myDir = new Directory(directory.path + '/esse-pre');
final isThere = await myDir.exists();
if (!isThere) {
await myDir.create(recursive: true);

Loading…
Cancel
Save