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/new_task/new_task_controller.dart'; class CreateTaskButton extends StatelessWidget { CreateTaskButton({super.key}); final controller = Get.put(NewTaskController()); @override Widget build(BuildContext context) { return Container( height: 60, alignment: Alignment.center, decoration: const BoxDecoration( borderRadius: BorderRadius.only( topRight: Radius.circular(80), topLeft: Radius.circular(80)), gradient: LinearGradient(colors: [ lightOrange, darkOrange, darkOrange, ])), child: Obx( () => controller.loading.value ? Container( height: 15, width: 15, child: const CircularProgressIndicator( color: Colors.white, ), ) : const Text( 'Create Task', style: TextStyle( color: Colors.white, fontWeight: FontWeight.bold, fontSize: 16), ), )); } }