|
|
@@ -1,7 +1,4 @@
|
|
|
-import 'package:electronic_assistant/base/base_controller.dart';
|
|
|
import 'package:electronic_assistant/base/base_page.dart';
|
|
|
-import 'package:electronic_assistant/data/bean/store_item.dart';
|
|
|
-import 'package:electronic_assistant/dialog/add_agenda_dialog.dart';
|
|
|
import 'package:electronic_assistant/resource/assets.gen.dart';
|
|
|
import 'package:electronic_assistant/resource/string.gen.dart';
|
|
|
import 'package:electronic_assistant/utils/expand.dart';
|
|
|
@@ -60,31 +57,49 @@ class AudioPickerPage extends BasePage<AudioPickerController> {
|
|
|
Widget _buildTitleView() {
|
|
|
return Container(
|
|
|
padding: EdgeInsets.symmetric(vertical: 18.h),
|
|
|
- child: Stack(
|
|
|
- children: [
|
|
|
- Center(
|
|
|
- child: Text(
|
|
|
- StringName.importLocalAudio.tr,
|
|
|
- style:
|
|
|
- TextStyle(fontSize: 17.sp, color: ColorName.primaryTextColor),
|
|
|
- )),
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.only(right: 16.w),
|
|
|
- child: GestureDetector(
|
|
|
- onTap: () {
|
|
|
- Get.back();
|
|
|
- },
|
|
|
- child: Align(
|
|
|
- alignment: Alignment.centerRight,
|
|
|
+ child: IntrinsicHeight(
|
|
|
+ child: Stack(
|
|
|
+ children: [
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(left: 16.w),
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ controller.pickSystemFile();
|
|
|
+ },
|
|
|
+ child: Align(
|
|
|
+ alignment: Alignment.centerLeft,
|
|
|
+ child: Text(
|
|
|
+ StringName.audioPickerAllFile.tr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 14.sp, color: ColorName.primaryTextColor),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Center(
|
|
|
child: Text(
|
|
|
- StringName.cancel.tr,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 14.sp, color: ColorName.secondaryTextColor),
|
|
|
+ StringName.importLocalAudio.tr,
|
|
|
+ style:
|
|
|
+ TextStyle(fontSize: 17.sp, color: ColorName.primaryTextColor),
|
|
|
+ )),
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(right: 16.w),
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ Get.back();
|
|
|
+ },
|
|
|
+ child: Align(
|
|
|
+ alignment: Alignment.centerRight,
|
|
|
+ child: Text(
|
|
|
+ StringName.cancel.tr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 14.sp, color: ColorName.secondaryTextColor),
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- ],
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
);
|
|
|
}
|