2024-03-19 11:09:07 +08:00
|
|
|
import 'package:flutter/material.dart';
|
2024-03-20 09:37:20 +08:00
|
|
|
import 'package:get/get.dart';
|
2024-03-19 11:09:07 +08:00
|
|
|
import 'package:sk_base_mobile/app_theme.dart';
|
2024-03-20 09:37:20 +08:00
|
|
|
import 'package:sk_base_mobile/screens/inventory_inout/inventory_inout_controller.dart';
|
2024-03-19 11:09:07 +08:00
|
|
|
import 'package:sk_base_mobile/util/screen_adaper_util.dart';
|
|
|
|
|
2024-03-20 09:37:20 +08:00
|
|
|
class FloatingCreateButton extends StatelessWidget {
|
|
|
|
FloatingCreateButton({super.key});
|
2024-03-20 10:37:52 +08:00
|
|
|
final inventoryInoutController = Get.find<InventoryInoutController>();
|
2024-03-19 11:09:07 +08:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-03-20 11:26:44 +08:00
|
|
|
return InkWell(
|
|
|
|
borderRadius: BorderRadius.circular(ScreenAdaper.sp(50)),
|
|
|
|
onTap: inventoryInoutController.showInOrOutPickerDialog,
|
|
|
|
child: Container(
|
|
|
|
height: ScreenAdaper.height(140),
|
|
|
|
width: ScreenAdaper.height(140),
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [AppTheme.primaryColorLight, AppTheme.primaryColor])),
|
|
|
|
child: Icon(
|
|
|
|
Icons.add,
|
|
|
|
color: Colors.white,
|
2024-03-28 17:18:46 +08:00
|
|
|
size: ScreenAdaper.height(70),
|
2024-03-20 11:26:44 +08:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
2024-03-19 11:09:07 +08:00
|
|
|
}
|
|
|
|
}
|