国际化全局变量 替换小区名称

master
张萌 3 years ago
parent b339e6df86
commit 6bf0234af1

@ -1,13 +1,12 @@
// Flutter imports: // Flutter imports:
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/models/announce/announcement_detail_model.dart'; import 'package:aku_new_community_manager/models/announce/announcement_detail_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
class AnouncementDetails extends StatelessWidget { class AnouncementDetails extends StatelessWidget {
final AnnouncementDetailModel model; final AnnouncementDetailModel model;
@ -48,7 +47,8 @@ class AnouncementDetails extends StatelessWidget {
Column( Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text('南宁人才公寓物业管理处', style: AppStyle().primaryStyle), Text('${S.of(context)!.tempPlotName}物业管理处',
style: AppStyle().primaryStyle),
SizedBox( SizedBox(
height: 4.w, height: 4.w,
), ),

@ -1,23 +1,25 @@
// Flutter imports: // Flutter imports:
// Project imports:
import 'package:aku_new_community_manager/models/todo_bussiness/todo_outdoor_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/items_outdoor_details_page.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// Package imports: // Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
// Project imports:
import 'package:aku_new_community_manager/models/todo_bussiness/todo_outdoor_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/items_outdoor_details_page.dart';
class ToDoOutDoorCard extends StatefulWidget { class ToDoOutDoorCard extends StatefulWidget {
final ToDoOutDoorModel model; final ToDoOutDoorModel model;
final VoidCallback? callRefresh; final VoidCallback? callRefresh;
final bool homeDisplay; final bool homeDisplay;
ToDoOutDoorCard( ToDoOutDoorCard(
{Key? key, required this.model, this.callRefresh, this.homeDisplay = false}) {Key? key,
required this.model,
this.callRefresh,
this.homeDisplay = false})
: super(key: key); : super(key: key);
@override @override
@ -102,7 +104,7 @@ class _ToDoOutDoorCardState extends State<ToDoOutDoorCard> {
), ),
Spacer(), Spacer(),
Text( Text(
'五象新区人才公寓', '${S.of(context)!.tempPlotName}',
style: AppStyle().primaryStyle, style: AppStyle().primaryStyle,
), ),
], ],

@ -9,6 +9,7 @@ import 'package:aku_new_community_manager/ui/settings/user_info_page.dart';
import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_avatar.dart'; import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_avatar.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
@ -101,7 +102,7 @@ class _PersonalDrawState extends State<PersonalDraw> {
children: [ children: [
Icon(Icons.location_on_outlined, size: 33.w), Icon(Icons.location_on_outlined, size: 33.w),
Text( Text(
'人才公寓', '${S.of(context)!.tempPlotName}',
style: TextStyle( style: TextStyle(
color: AppStyle.primaryTextColor, color: AppStyle.primaryTextColor,
fontSize: 24.sp), fontSize: 24.sp),

@ -1,21 +1,20 @@
// Flutter imports: // Flutter imports:
// Project imports:
import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/models/manager/rules_manage/rules_manage_list_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/manage_pages/rules_manage/rules_manage_detail_page.dart'; import 'package:aku_new_community_manager/ui/manage_pages/rules_manage/rules_manage_detail_page.dart';
import 'package:flutter/material.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/ui/widgets/common/bee_list_view.dart';
// Package imports: // Package imports:
import 'package:common_utils/common_utils.dart'; import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
// Project imports:
import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/models/manager/rules_manage/rules_manage_list_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/ui/widgets/common/bee_list_view.dart';
class RulesManagePage extends StatefulWidget { class RulesManagePage extends StatefulWidget {
RulesManagePage({Key? key}) : super(key: key); RulesManagePage({Key? key}) : super(key: key);
@ -66,7 +65,9 @@ class _RulesManagePageState extends State<RulesManagePage> {
Widget _buildCard(RulesManageListModel model) { Widget _buildCard(RulesManageListModel model) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
Get.to(() => RulesManageDetailPage(model: model,)); Get.to(() => RulesManageDetailPage(
model: model,
));
}, },
child: Container( child: Container(
color: Colors.white, color: Colors.white,
@ -92,7 +93,11 @@ class _RulesManagePageState extends State<RulesManagePage> {
32.w.heightBox, 32.w.heightBox,
Row( Row(
children: [ children: [
'南宁人才公寓'.text.size(20.sp).color(kTextSubColor).make(), '${S.of(context)!.tempPlotName}'
.text
.size(20.sp)
.color(kTextSubColor)
.make(),
Spacer(), Spacer(),
'发布于 ${DateUtil.formatDateStr(model.releaseDate!, format: 'MM-dd HH:mm')}' '发布于 ${DateUtil.formatDateStr(model.releaseDate!, format: 'MM-dd HH:mm')}'
.text .text

@ -1,22 +1,24 @@
// Flutter imports: // Flutter imports:
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/const/resource.dart'; import 'package:aku_new_community_manager/const/resource.dart';
import 'package:aku_new_community_manager/models/manager/goods_out/goods_out_item_model.dart'; import 'package:aku_new_community_manager/models/manager/goods_out/goods_out_item_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/tools/widget_tool.dart'; import 'package:aku_new_community_manager/tools/widget_tool.dart';
import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/items_outdoor_details_page.dart'; import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/items_outdoor_details_page.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
class ItemsOutdoorCard extends StatefulWidget { class ItemsOutdoorCard extends StatefulWidget {
final GoodsOutItemModel model; final GoodsOutItemModel model;
final VoidCallback? callRefresh; final VoidCallback? callRefresh;
ItemsOutdoorCard({Key? key, /*required*/ /*required*/ required this.model, this.callRefresh}) ItemsOutdoorCard(
{Key? key,
/*required*/ /*required*/ required this.model,
this.callRefresh})
: super(key: key); : super(key: key);
@override @override
@ -97,7 +99,7 @@ class _ItemsOutdoorCardState extends State<ItemsOutdoorCard> {
), ),
Spacer(), Spacer(),
Text( Text(
'五象新区人才公寓', '${S.of(context)!.tempPlotName}',
style: AppStyle().primaryStyle, style: AppStyle().primaryStyle,
), ),
], ],

@ -1,16 +1,4 @@
// Flutter imports: // Flutter imports:
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_material_button.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:common_utils/common_utils.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:url_launcher/url_launcher.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/const/api.dart'; import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/const/resource.dart'; import 'package:aku_new_community_manager/const/resource.dart';
@ -21,13 +9,26 @@ import 'package:aku_new_community_manager/tools/extensions/list_extension_tool.d
import 'package:aku_new_community_manager/tools/widget_tool.dart'; import 'package:aku_new_community_manager/tools/widget_tool.dart';
import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/outdoor_notpass_page.dart'; import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/outdoor_notpass_page.dart';
import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/outdoor_pass_page.dart'; import 'package:aku_new_community_manager/ui/sub_pages/items_outdoor/outdoor_pass_page.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_material_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/utils/network/base_model.dart'; import 'package:aku_new_community_manager/utils/network/base_model.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
// Package imports:
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:url_launcher/url_launcher.dart';
class ItemsOutdoorDetailsPage extends StatefulWidget { class ItemsOutdoorDetailsPage extends StatefulWidget {
final int id; final int id;
ItemsOutdoorDetailsPage({Key? key, /*required*/ required this.id}) : super(key: key);
ItemsOutdoorDetailsPage({Key? key, /*required*/ required this.id})
: super(key: key);
@override @override
_ItemsOutdoorDetailsPageState createState() => _ItemsOutdoorDetailsPageState createState() =>
@ -105,8 +106,8 @@ class _ItemsOutdoorDetailsPageState extends State<ItemsOutdoorDetailsPage> {
), ),
AkuBox.h(16), AkuBox.h(16),
...<Widget>[ ...<Widget>[
_buildTile( _buildTile(R.ASSETS_OUTDOOR_IC_HOME_PNG, '小区名称',
R.ASSETS_OUTDOOR_IC_HOME_PNG, '小区名称', '五象新区人才公寓'), '${S.of(context)!.tempPlotName}'),
_buildTile( _buildTile(
R.ASSETS_OUTDOOR_IC_ADDRESS_PNG, R.ASSETS_OUTDOOR_IC_ADDRESS_PNG,
'详细地址', '详细地址',
@ -331,7 +332,7 @@ class _ItemsOutdoorDetailsPageState extends State<ItemsOutdoorDetailsPage> {
), ),
) )
: SizedBox(); : SizedBox();
case 2: case 2:
return Container( return Container(
height: 226.w, height: 226.w,
@ -389,7 +390,7 @@ class _ItemsOutdoorDetailsPageState extends State<ItemsOutdoorDetailsPage> {
], ],
), ),
); );
case 3: case 3:
return Container( return Container(
height: 226.w, height: 226.w,
@ -450,7 +451,7 @@ class _ItemsOutdoorDetailsPageState extends State<ItemsOutdoorDetailsPage> {
], ],
), ),
); );
default: default:
return SizedBox(); return SizedBox();
} }

@ -1,20 +1,19 @@
// Dart imports: // Dart imports:
import 'dart:async'; import 'dart:async';
// Flutter imports:
import 'package:aku_new_community_manager/ui/widgets/common/aku_material_button.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:bot_toast/bot_toast.dart';
import 'package:get/get.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/tools/widget_tool.dart'; import 'package:aku_new_community_manager/tools/widget_tool.dart';
import 'package:aku_new_community_manager/ui/tool_pages/warning/warning_detail_page.dart'; import 'package:aku_new_community_manager/ui/tool_pages/warning/warning_detail_page.dart';
import 'package:aku_new_community_manager/ui/tool_pages/warning/warning_success.dart'; import 'package:aku_new_community_manager/ui/tool_pages/warning/warning_success.dart';
// Flutter imports:
import 'package:aku_new_community_manager/ui/widgets/common/aku_material_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
// Package imports:
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:get/get.dart';
class WarningSubPage extends StatefulWidget { class WarningSubPage extends StatefulWidget {
WarningSubPage({Key? key}) : super(key: key); WarningSubPage({Key? key}) : super(key: key);
@ -81,7 +80,7 @@ class _WarningSubPageState extends State<WarningSubPage> {
], ],
), ),
Text( Text(
'人才公寓', '${S.of(context)!.tempPlotName}',
style: TextStyle( style: TextStyle(
fontSize: 44.w, fontSize: 44.w,
color: AppStyle.primaryTextColor, color: AppStyle.primaryTextColor,

@ -1,18 +1,17 @@
// Dart imports: // Dart imports:
import 'dart:async'; import 'dart:async';
// Flutter imports:
import 'package:aku_new_community_manager/ui/widgets/common/aku_material_button.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:get/get.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/tools/widget_tool.dart'; import 'package:aku_new_community_manager/tools/widget_tool.dart';
import 'package:aku_new_community_manager/ui/tool_pages/warning/warning_detail_page.dart'; import 'package:aku_new_community_manager/ui/tool_pages/warning/warning_detail_page.dart';
// Flutter imports:
import 'package:aku_new_community_manager/ui/widgets/common/aku_material_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// Package imports:
import 'package:get/get.dart';
class WarningSuccess extends StatefulWidget { class WarningSuccess extends StatefulWidget {
WarningSuccess({Key? key}) : super(key: key); WarningSuccess({Key? key}) : super(key: key);
@ -52,7 +51,7 @@ class _WarningSuccessState extends State<WarningSuccess> {
width: 420.w, width: 420.w,
), ),
Text( Text(
'人才公寓', '${S.of(context)!.tempPlotName}',
style: TextStyle( style: TextStyle(
fontSize: 44.w, fontSize: 44.w,
color: AppStyle.primaryTextColor, color: AppStyle.primaryTextColor,

Loading…
Cancel
Save