Skip to content

Commit 8c35a1c

Browse files
committed
update words
1 parent 2adcb04 commit 8c35a1c

File tree

8 files changed

+206
-40
lines changed

8 files changed

+206
-40
lines changed

.devcontainer/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM debian:stretch
2+
3+
RUN apt-get update && apt-get -y install git curl unzip
4+
5+
RUN apt-get autoremove -y \
6+
&& apt-get clean -y \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
RUN mkdir /home/vscodespace
10+
WORKDIR /home/vscodespace
11+
12+
ENV PUB_CACHE=/home/vscodespace/.pub_cache
13+
ENV PATH="/home/vscodespace/flutter/bin:$PATH"
14+
15+
RUN git clone https://github.com/flutter/flutter && \
16+
/home/vscodespace/flutter/bin/flutter config --enable-web

.devcontainer/devcontainer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile"
4+
},
5+
"name": "Flutter",
6+
"extensions": [
7+
"Dart-Code.dart-code",
8+
"Dart-Code.flutter"
9+
],
10+
}

assets/images/unknown.png

-651 KB
Binary file not shown.

assets/images/vt.webp

1020 KB
Binary file not shown.

assets/translations/zh.json

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,75 @@
66
"hobby": "爱好",
77
"favourite": {
88
"food": "喜欢的食物",
9-
"animal": "喜欢的动物"
9+
"cocktails": "喜欢的鸡尾酒",
10+
"drink": "喜欢的饮料",
11+
"animal": "喜欢的动物",
12+
"bang": "喜欢的乐队"
1013
},
1114
"characters": {
1215
"asahi": {
1316
"name_localized": "高垣朝陽",
1417
"intro": "欸?我是男孩子噢!",
15-
"summary": "喜欢穿水手服的阳光少女,可是真实身份却是男孩子,只因为喜欢可爱的衣服而穿上了女装。头发是真发而且发质非常好,对自己的单马尾非常自信。出于服装可爱的理由在一所女仆咖啡厅打工,在店里很受欢迎。\n似乎很喜欢一个游戏里叫朝日的角色。",
18+
"summary": "喜欢穿水手服的阳光少女,可是真实身份却是男孩子,只因为喜欢可爱的衣服而穿上了女装。头发是真发而且发质非常好,对自己的单马尾非常自信。\n出于服装可爱的理由在一所女仆咖啡厅打工,在店里很受欢迎。\n是Tesla和翼的哥哥,非常爱护Tesla和翼,包揽了所有的家务事,还会为Tesla和翼做上学时候的便当,经常被Tesla吐槽:\"哥哥就像妈妈一样呢\",但是对于Tesla和秋的感情似乎毫无察觉的样子\n似乎很喜欢一个游戏里叫朝日的角色\n自称是17岁",
1619
"birthday": "7月10日",
1720
"height": "162cm",
1821
"age": "永远的17岁",
1922
"hobby": "家务、女仆咖啡厅的打工",
2023
"favourite": {
2124
"food": "马卡龙和其他甜食!",
2225
"animal": "小熊、猫猫!"
26+
},
27+
"relationship": {
28+
"tesla": {
29+
"positive01": "一家人!",
30+
"positive02": "Lolita可爱!",
31+
"positive03": "电脑很厉害的样子!"
32+
},
33+
"aki": {
34+
"positive01": "咖啡厅的好友!",
35+
"positive02": "西装的样子好帅气!",
36+
"positive03": "很贴心!"
37+
},
38+
"yi": {
39+
"positive01": "一家人!",
40+
"positive02": "演出的样子又帅气又可爱!",
41+
"positive03": "唱歌很好听!"
42+
}
2343
}
2444
},
2545
"aki": {
26-
46+
"intro": "Manners maketh man",
47+
"summary": "穿着西装的绅士,稳重而成熟,却其实是一名少女。日常的健身和饮食的控制让她的身体精干健壮,除此之外,她还精心呵护秀丽的长发。\n和高垣朝陽在同一所的女仆咖啡厅打工,然而打工制服是管家服,是店里的帅气担当,细致贴心的关怀让许多女性为之倾倒。而咖啡厅只是额外的打工,主业其实是一名调酒师,在一家知名酒馆内工作,还小有名气。\n在得知高垣朝陽是男性之前就爱上了他,知道真相之后便开始以各种方式进行求婚,但总是被搪塞过去。",
48+
"birthday": "9月22日",
49+
"height": "171cm",
50+
"age": "24岁",
51+
"hobby": "可爱漂亮的人,调酒",
52+
"favourite": {
53+
"cocktails": "爱尔兰咖啡"
54+
}
2755
},
2856
"tesla": {
29-
30-
},
57+
"intro": "……我不是宅,也不是兄控",
58+
"summary": "喜欢以Lolita打扮现身的少女,然而长裙之下另有隐情。在平日里表现得十分的沉稳冷静。\n虽然只有17岁,但是喜欢在家里钻研计算机科学与技术,在Jithub上小有名气。\n同时也是一名宅女,涉猎范围也非常广泛,暗地里会拿哥哥和弟弟做各种各样的幻想。偶尔会出现在一些展会上,大多数时候是一个人独自逛。\n是高垣朝陽的妹妹,翼的姐姐。\n非常喜欢哥哥,但是平日里为了保持沉稳冷静的样子不会表现出来。对于全家都能女装这件事情感到非常高兴。",
59+
"birthday": "11月21日",
60+
"height": "170cm",
61+
"age": "17岁",
62+
"hobby": "哥哥,哥哥和哥哥",
63+
"favourite": {
64+
"food": "哥哥,牛奶和巧克力卷"
65+
}
66+
},
3167
"yi": {
32-
68+
"intro": "性别?很重要吗?",
69+
"summary": "有些中二的性格,而中性打扮的之下,性别成谜。\n喜欢摇滚乐,自己也组建了乐队,是乐队里的节奏吉他兼主唱,有时会去Livehouse演出,以独特的嗓音和J-Rock的风格吸引了一批粉丝。\n在一所校服自选的高中就读,会看心情决定今天是男装上学还是女装上学,时不时会被校园里的男女生告白吗,但对恋爱毫无兴趣。\n是高垣朝陽和Tesla中最小的\n其实知道姐姐对哥哥的感情,但是觉得观察姐姐和哥哥很有意思,决定不戳破,暗中观察。",
70+
"birthday": "5月8日",
71+
"height": "158cm",
72+
"age": "16岁",
73+
"hobby": "吉他弹唱",
74+
"favourite": {
75+
"drink": "可乐",
76+
"bang": "ONE OK ROCK"
77+
}
3378
}
3479
}
3580
}

lib/data/characters.dart

Lines changed: 121 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter/widgets.dart';
33

4+
class RelationshipData {
5+
final String title;
6+
final List<RelationshipWithCharacter> items;
7+
8+
RelationshipData({this.title, this.items});
9+
}
10+
11+
class RelationshipWithCharacter {
12+
final String id;
13+
final List<RelationshipItem> items;
14+
15+
RelationshipWithCharacter({this.id, this.items});
16+
}
17+
18+
class RelationshipItem {
19+
final String desc;
20+
final bool isPositive;
21+
final int point;
22+
23+
RelationshipItem({this.desc, this.isPositive, this.point});
24+
}
25+
426
class CharacterData {
527
final String id;
628
final String name;
@@ -13,6 +35,7 @@ class CharacterData {
1335
final Alignment mainVisualAlignment;
1436
final double avatarOffsetX;
1537
final double rightPadding;
38+
final List<RelationshipData> relationship;
1639

1740
CharacterData({
1841
this.id,
@@ -26,6 +49,7 @@ class CharacterData {
2649
this.mainVisualAlignment = Alignment.center,
2750
this.avatarOffsetX = 0,
2851
this.rightPadding = 0,
52+
this.relationship = const [],
2953
});
3054
}
3155

@@ -55,6 +79,78 @@ final characters = [
5579
'favourite.food': 'characters.asahi.favourite.food',
5680
'favourite.animal': 'characters.asahi.favourite.animal',
5781
},
82+
relationship: [
83+
RelationshipData(
84+
title: 'family',
85+
items: [
86+
RelationshipWithCharacter(
87+
id: 'Tesla',
88+
items: [
89+
RelationshipItem(
90+
isPositive: true,
91+
point: 100,
92+
desc: "characters.asahi.relationship.tesla.positive01",
93+
),
94+
RelationshipItem(
95+
isPositive: true,
96+
point: 100,
97+
desc: "characters.asahi.relationship.tesla.positive02",
98+
),
99+
RelationshipItem(
100+
isPositive: true,
101+
point: 100,
102+
desc: "characters.asahi.relationship.tesla.positive03",
103+
),
104+
],
105+
),
106+
RelationshipWithCharacter(
107+
id: 'Yi',
108+
items: [
109+
RelationshipItem(
110+
isPositive: true,
111+
point: 100,
112+
desc: "characters.asahi.relationship.yi.positive01",
113+
),
114+
RelationshipItem(
115+
isPositive: true,
116+
point: 100,
117+
desc: "characters.asahi.relationship.yi.positive02",
118+
),
119+
RelationshipItem(
120+
isPositive: true,
121+
point: 100,
122+
desc: "characters.asahi.relationship.yi.positive03",
123+
),
124+
],
125+
),
126+
],
127+
),
128+
RelationshipData(
129+
title: "cafe",
130+
items: [
131+
RelationshipWithCharacter(
132+
id: 'Aki',
133+
items: [
134+
RelationshipItem(
135+
isPositive: true,
136+
point: 100,
137+
desc: "characters.asahi.relationship.aki.positive01",
138+
),
139+
RelationshipItem(
140+
isPositive: true,
141+
point: 100,
142+
desc: "characters.asahi.relationship.aki.positive02",
143+
),
144+
RelationshipItem(
145+
isPositive: true,
146+
point: 100,
147+
desc: "characters.asahi.relationship.aki.positive03",
148+
),
149+
],
150+
),
151+
],
152+
)
153+
],
58154
),
59155
CharacterData(
60156
name: 'Tesla',
@@ -64,16 +160,15 @@ final characters = [
64160
color: Colors.purple,
65161
avatarOffsetX: -0.2,
66162
rightPadding: 0.09,
67-
intro: 'characters.asahi.intro',
68-
summary: 'characters.asahi.summary',
163+
intro: 'characters.tesla.intro',
164+
summary: 'characters.tesla.summary',
69165
extraData: {
70-
'gender': _male,
71-
'age': 'characters.asahi.age',
72-
'birthday': 'characters.asahi.birthday',
73-
'height': 'characters.asahi.height',
74-
'hobby': 'characters.asahi.hobby',
75-
'favourite.food': 'characters.asahi.favourite.food',
76-
'favourite.animal': 'characters.asahi.favourite.animal',
166+
'gender': _futanari,
167+
'age': 'characters.tesla.age',
168+
'birthday': 'characters.tesla.birthday',
169+
'height': 'characters.tesla.height',
170+
'hobby': 'characters.tesla.hobby',
171+
'favourite.food': 'characters.tesla.favourite.food',
77172
},
78173
),
79174
CharacterData(
@@ -84,16 +179,15 @@ final characters = [
84179
color: Colors.blue,
85180
avatarOffsetX: -0.2,
86181
rightPadding: 0.075,
87-
intro: 'characters.asahi.intro',
88-
summary: 'characters.asahi.summary',
182+
intro: 'characters.aki.intro',
183+
summary: 'characters.aki.summary',
89184
extraData: {
90-
'gender': _male,
91-
'age': 'characters.asahi.age',
92-
'birthday': 'characters.asahi.birthday',
93-
'height': 'characters.asahi.height',
94-
'hobby': 'characters.asahi.hobby',
95-
'favourite.food': 'characters.asahi.favourite.food',
96-
'favourite.animal': 'characters.asahi.favourite.animal',
185+
'gender': _female,
186+
'age': 'characters.aki.age',
187+
'birthday': 'characters.aki.birthday',
188+
'height': 'characters.aki.height',
189+
'hobby': 'characters.aki.hobby',
190+
'favourite.cocktails': 'characters.aki.favourite.cocktails',
97191
},
98192
),
99193
CharacterData(
@@ -105,16 +199,16 @@ final characters = [
105199
color: Colors.pink,
106200
avatarOffsetX: -0.1,
107201
rightPadding: 0.2,
108-
intro: 'characters.asahi.intro',
109-
summary: 'characters.asahi.summary',
202+
intro: 'characters.yi.intro',
203+
summary: 'characters.yi.summary',
110204
extraData: {
111-
'gender': _male,
112-
'age': 'characters.asahi.age',
113-
'birthday': 'characters.asahi.birthday',
114-
'height': 'characters.asahi.height',
115-
'hobby': 'characters.asahi.hobby',
116-
'favourite.food': 'characters.asahi.favourite.food',
117-
'favourite.animal': 'characters.asahi.favourite.animal',
205+
'gender': _genderless,
206+
'age': 'characters.yi.age',
207+
'birthday': 'characters.yi.birthday',
208+
'height': 'characters.yi.height',
209+
'hobby': 'characters.yi.hobby',
210+
'favourite.drink': 'characters.yi.favourite.drink',
211+
'favourite.bang': 'characters.yi.favourite.bang',
118212
},
119213
),
120214
];

lib/scenes/character_detail_scene.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ class CharacterDetailSceneState extends State<CharacterDetailScene>
130130
),
131131
],
132132
),
133-
constraints: BoxConstraints(maxWidth: 200),
133+
constraints:
134+
BoxConstraints(maxWidth: query.size.width * 0.1),
134135
child: VTabBar(
135136
controller: _tabController,
136137
indicatorColor: data.color,
@@ -201,12 +202,13 @@ class CharacterDetailSceneState extends State<CharacterDetailScene>
201202
Positioned(
202203
left: standardPadding,
203204
top: standardPadding / 2,
204-
child: FlatButton.icon(
205+
child: FloatingActionButton(
206+
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
207+
foregroundColor: Theme.of(context).textTheme.bodyText1.color,
205208
onPressed: () {
206209
Navigator.of(context).pop();
207210
},
208-
icon: Icon(Icons.arrow_back),
209-
label: Text('Back'),
211+
child: Icon(Icons.arrow_back),
210212
),
211213
),
212214
],
@@ -235,7 +237,6 @@ class _CharacterInfo extends StatelessWidget {
235237
SizedBox(height: standardPadding),
236238
Wrap(
237239
crossAxisAlignment: WrapCrossAlignment.center,
238-
// crossAxisAlignment: CrossAxisAlignment.baseline,
239240
children: [
240241
Text(
241242
data.name,
@@ -252,7 +253,7 @@ class _CharacterInfo extends StatelessWidget {
252253
columnWidths: {
253254
0: FixedColumnWidth(50.0),
254255
1: FixedColumnWidth(100.0),
255-
2: IntrinsicColumnWidth(), // i want this one to take the rest available space
256+
2: IntrinsicColumnWidth(),
256257
},
257258
children: data.extraData.entries
258259
.map(

lib/scenes/home_scene.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class HomeScene extends StatelessWidget {
137137
return PlatformAwareAssetImage(
138138
fit: BoxFit.cover,
139139
alignment: align,
140-
asset: 'unknown.png',
140+
asset: 'vt.webp',
141141
);
142142
},
143143
),

0 commit comments

Comments
 (0)