mobile_skt/lib/screens/home/components/change_button_roe.dart

45 lines
1.5 KiB
Dart
Raw Normal View History

2024-03-19 11:09:07 +08:00
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sk_base_mobile/constants/bg_color.dart';
import 'package:sk_base_mobile/screens/home/components/change_icon.dart';
import 'package:sk_base_mobile/screens/home/components/today_button.dart';
import 'package:sk_base_mobile/screens/home/home_controller.dart';
2024-03-19 13:27:42 +08:00
import 'package:sk_base_mobile/util/screen_adaper_util.dart';
2024-03-19 11:09:07 +08:00
class ChangeButtonRow extends StatelessWidget {
ChangeButtonRow({super.key});
final controller = Get.put(HomeController());
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.symmetric(
horizontal: MediaQuery.sizeOf(context).width * 0.06),
child: Row(
children: [
2024-03-19 13:27:42 +08:00
const TodayButton(),
const Spacer(),
2024-03-19 11:09:07 +08:00
InkWell(
onTap: () => controller.onMoveBack(),
child: ChangeIconButton(
icon: Icon(
Icons.arrow_back_ios_rounded,
color: Colors.white,
2024-03-19 13:27:42 +08:00
size: ScreenAdaper.sp(30),
2024-03-19 11:09:07 +08:00
))),
2024-03-19 13:27:42 +08:00
const SizedBox(
width: defaultPadding,
2024-03-19 11:09:07 +08:00
),
InkWell(
onTap: () => controller.onMoveNextPage(),
child: ChangeIconButton(
icon: Icon(
Icons.arrow_forward_ios_rounded,
color: Colors.white,
2024-03-19 13:27:42 +08:00
size: ScreenAdaper.sp(30),
2024-03-19 11:09:07 +08:00
))),
],
),
);
}
}