11import 'package:arabic_learning/vars/global.dart' ;
2+ import 'package:arabic_learning/vars/license_storage.dart' ;
23import 'package:arabic_learning/vars/statics_var.dart' ;
34import 'package:flutter/foundation.dart' ;
45import 'package:flutter/material.dart' ;
@@ -204,16 +205,11 @@ class _MyHomePageState extends State<MyHomePage> {
204205 children: [
205206 SelectableText ('欢迎使用本软件,请先阅读使用说明。' , style: TextStyle (fontWeight: FontWeight .bold, color: Colors .redAccent, fontSize: 36 )),
206207 SelectableText ("软件开源地址:https://github.com/OctagonalStar/arabic_learning" ),
207- SelectableText ("由于该软件目前还处在开发阶段,有一些bug是不可避免的。所以在正式使用该软件前你应当阅读并理解以下条款:" ),
208- SelectableText ("1. 该软件仅供学习使用,请勿用于商业用途。" ),
209- SelectableText ("2. 该软件不会对你的阿拉伯语成绩做出任何担保,若你出现阿拉伯语成绩不理想的情况请先考虑自己的问题 :)" ),
210- SelectableText ("3. 由于软件在不同系统上运行可能存在兼容性问题,软件出错造成的任何损失(包含精神损伤),软件作者和其他贡献者不会担负任何责任" ),
211- SelectableText ("4. 你知晓并理解如果你错误地使用软件(如使用错误的数据集)造成的任何后果,乃至二次宇宙大爆炸,都需要你自行承担" ),
212- SelectableText ("5. 其他在GNU AFFERO GENERAL PUBLIC LICENSE (Version 3)开源协议下的条款" ),
208+ SelectableText (LicenseVars .noMyDutyAnnouce),
213209 SelectableText ("若你已理解并接受上述条款,请向下翻页,并在底部输入框中填写你的名字,并点击“我没异议”按钮以确认。" ),
214210 SizedBox (height: MediaQuery .of (context).size.height * 0.1 ),
215- kIsWeb ? SelectableText ('检测到当前是在浏览器中运行,请悉知以下内容: \n 1. 由于网页端的一些限制,该软件*不一定*能按照预期工作 \n 2. 软件使用中所有的数据均保存在浏览器缓存中,清空网站缓存可能导致数据永久丢失 \n 3. 该网页部署于Github Pages,由Github Action自动构建,可能会不定期进行热更新且版本快于发布版。你可以由此更早地体验到新版功能,但也可能遇到新bug。 \n 4. 由于Github Pages的限制,我*完全不能*保证你是否能正常链接网站 \n 5. 网站展示效果不代表实际app发布版效果' ) : SizedBox ( ),
216- Text ('招募软件图标ing\n 有想法或者有现有设计可以联系我' , style: TextStyle (fontWeight: FontWeight .bold, color: Colors .redAccent, fontSize: 24 )),
211+ if ( kIsWeb) SelectableText (LicenseVars .theWebSpecialAnnouce ),
212+ Text ('招募软件图标ing\n 有想法或者有现有设计可以联系我' , style: TextStyle (fontWeight: FontWeight .bold, color: Colors .redAccent, fontSize: 18 )),
217213 SizedBox (height: MediaQuery .of (context).size.height),
218214 TextField (
219215 controller: controller,
@@ -230,8 +226,7 @@ class _MyHomePageState extends State<MyHomePage> {
230226 children: [
231227 ElevatedButton (
232228 style: ElevatedButton .styleFrom (
233- //backgroundColor: Colors.teal,
234- shape: ContinuousRectangleBorder (borderRadius: StaticsVar .br)
229+ shape: RoundedRectangleBorder (borderRadius: StaticsVar .br)
235230 ),
236231 onPressed: () async {
237232 await SystemChannels .platform.invokeMethod ('SystemNavigator.pop' );
@@ -242,8 +237,7 @@ class _MyHomePageState extends State<MyHomePage> {
242237 ),
243238 ElevatedButton (
244239 style: ElevatedButton .styleFrom (
245- //backgroundColor: Colors.teal,
246- shape: ContinuousRectangleBorder (borderRadius: StaticsVar .br)
240+ shape: RoundedRectangleBorder (borderRadius: StaticsVar .br)
247241 ),
248242 onPressed: () async {
249243 if (controller.text.isNotEmpty){
0 commit comments