mobile_skt/lib/widgets/floating_action.dart

31 lines
1.1 KiB
Dart
Raw Normal View History

2024-03-19 11:09:07 +08:00
import 'package:flutter/material.dart';
import 'package:get/get.dart';
2024-03-19 11:09:07 +08:00
import 'package:sk_base_mobile/app_theme.dart';
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';
class FloatingCreateButton extends StatelessWidget {
FloatingCreateButton({super.key});
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
}
}