Commit f732ada7 authored by akari's avatar akari

fix: 文件结构调整

parent 7a77a537
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import '../widgets/settings_about_panel.dart';
import 'cubit/settings_about_index_cubit.dart'; import 'cubit/settings_about_index_cubit.dart';
import 'widgets/settings_about_panel.dart';
class SettingsAboutIndexView extends StatelessWidget { class SettingsAboutIndexView extends StatelessWidget {
const SettingsAboutIndexView({super.key}); const SettingsAboutIndexView({super.key});
......
...@@ -4,9 +4,9 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; ...@@ -4,9 +4,9 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:laki_icu_app/blocs/bluetooth_read/bluetooth_read_bloc.dart'; import 'package:laki_icu_app/blocs/bluetooth_read/bluetooth_read_bloc.dart';
import 'package:laki_icu_app/blocs/bluetooth_read/bluetooth_read_state.dart'; import 'package:laki_icu_app/blocs/bluetooth_read/bluetooth_read_state.dart';
import '../cubit/settings_index_cubit.dart'; import '../../cubit/settings_index_cubit.dart';
import '../cubit/settings_index_state.dart'; import '../../cubit/settings_index_state.dart';
import 'settings_panel_frame.dart'; import '../../widgets/settings_panel_frame.dart';
class SettingsAboutPanel extends StatelessWidget { class SettingsAboutPanel extends StatelessWidget {
const SettingsAboutPanel({super.key}); const SettingsAboutPanel({super.key});
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import '../widgets/settings_title_panel.dart';
import 'cubit/customer_service_index_cubit.dart'; import 'cubit/customer_service_index_cubit.dart';
import 'widgets/customer_service_panel.dart';
class CustomerServiceIndexView extends StatelessWidget { class CustomerServiceIndexView extends StatelessWidget {
const CustomerServiceIndexView({super.key}); const CustomerServiceIndexView({super.key});
...@@ -11,7 +11,7 @@ class CustomerServiceIndexView extends StatelessWidget { ...@@ -11,7 +11,7 @@ class CustomerServiceIndexView extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BlocProvider( return BlocProvider(
create: (_) => CustomerServiceIndexCubit(), create: (_) => CustomerServiceIndexCubit(),
child: const SettingsTitlePanel(title: '客户服务'), child: const CustomerServicePanel(),
); );
} }
} }
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'settings_panel_frame.dart'; import '../../widgets/settings_panel_frame.dart';
class SettingsTitlePanel extends StatelessWidget { class CustomerServicePanel extends StatelessWidget {
const SettingsTitlePanel({ const CustomerServicePanel({super.key});
super.key,
required this.title,
});
final String title;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
...@@ -19,7 +14,7 @@ class SettingsTitlePanel extends StatelessWidget { ...@@ -19,7 +14,7 @@ class SettingsTitlePanel extends StatelessWidget {
child: Align( child: Align(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
child: Text( child: Text(
title, '客户服务',
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 34.sp, fontSize: 34.sp,
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import '../widgets/settings_title_panel.dart';
import 'cubit/factory_settings_index_cubit.dart'; import 'cubit/factory_settings_index_cubit.dart';
import 'widgets/factory_settings_panel.dart';
class FactorySettingsIndexView extends StatelessWidget { class FactorySettingsIndexView extends StatelessWidget {
const FactorySettingsIndexView({super.key}); const FactorySettingsIndexView({super.key});
...@@ -11,7 +11,7 @@ class FactorySettingsIndexView extends StatelessWidget { ...@@ -11,7 +11,7 @@ class FactorySettingsIndexView extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BlocProvider( return BlocProvider(
create: (_) => FactorySettingsIndexCubit(), create: (_) => FactorySettingsIndexCubit(),
child: const SettingsTitlePanel(title: '出厂设置'), child: const FactorySettingsPanel(),
); );
} }
} }
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../widgets/settings_panel_frame.dart';
class FactorySettingsPanel extends StatelessWidget {
const FactorySettingsPanel({super.key});
@override
Widget build(BuildContext context) {
return SettingsPanelFrame(
backgroundAsset: settingsAssetPanelMain,
padding: EdgeInsets.all(42.w),
child: Align(
alignment: Alignment.topLeft,
child: Text(
'出厂设置',
style: TextStyle(
color: Colors.white,
fontSize: 34.sp,
fontWeight: FontWeight.w800,
),
),
),
);
}
}
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import '../widgets/settings_title_panel.dart';
import 'cubit/remote_control_index_cubit.dart'; import 'cubit/remote_control_index_cubit.dart';
import 'widgets/remote_control_panel.dart';
class RemoteControlIndexView extends StatelessWidget { class RemoteControlIndexView extends StatelessWidget {
const RemoteControlIndexView({super.key}); const RemoteControlIndexView({super.key});
...@@ -11,7 +11,7 @@ class RemoteControlIndexView extends StatelessWidget { ...@@ -11,7 +11,7 @@ class RemoteControlIndexView extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BlocProvider( return BlocProvider(
create: (_) => RemoteControlIndexCubit(), create: (_) => RemoteControlIndexCubit(),
child: const SettingsTitlePanel(title: '远程控制'), child: const RemoteControlPanel(),
); );
} }
} }
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../widgets/settings_panel_frame.dart';
class RemoteControlPanel extends StatelessWidget {
const RemoteControlPanel({super.key});
@override
Widget build(BuildContext context) {
return SettingsPanelFrame(
backgroundAsset: settingsAssetPanelMain,
padding: EdgeInsets.all(42.w),
child: Align(
alignment: Alignment.topLeft,
child: Text(
'远程控制',
style: TextStyle(
color: Colors.white,
fontSize: 34.sp,
fontWeight: FontWeight.w800,
),
),
),
);
}
}
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import '../widgets/settings_title_panel.dart';
import 'cubit/software_update_index_cubit.dart'; import 'cubit/software_update_index_cubit.dart';
import 'widgets/software_update_panel.dart';
class SoftwareUpdateIndexView extends StatelessWidget { class SoftwareUpdateIndexView extends StatelessWidget {
const SoftwareUpdateIndexView({super.key}); const SoftwareUpdateIndexView({super.key});
...@@ -11,7 +11,7 @@ class SoftwareUpdateIndexView extends StatelessWidget { ...@@ -11,7 +11,7 @@ class SoftwareUpdateIndexView extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BlocProvider( return BlocProvider(
create: (_) => SoftwareUpdateIndexCubit(), create: (_) => SoftwareUpdateIndexCubit(),
child: const SettingsTitlePanel(title: '软件更新'), child: const SoftwareUpdatePanel(),
); );
} }
} }
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../widgets/settings_panel_frame.dart';
class SoftwareUpdatePanel extends StatelessWidget {
const SoftwareUpdatePanel({super.key});
@override
Widget build(BuildContext context) {
return SettingsPanelFrame(
backgroundAsset: settingsAssetPanelMain,
padding: EdgeInsets.all(42.w),
child: Align(
alignment: Alignment.topLeft,
child: Text(
'软件更新',
style: TextStyle(
color: Colors.white,
fontSize: 34.sp,
fontWeight: FontWeight.w800,
),
),
),
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment