Untitled
unknown
dart
2 years ago
776 B
2
Indexable
Never
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:iketfaa_delivery/App/Common/Utilities/Constants/AppStyles.dart'; const int kCooldownLong_ms = 3000; const int kCooldownShort_ms = 1000; class FollowButton extends StatefulWidget { final VoidCallback onPressed; FollowButton({required this.onPressed}); @override _FollowButtonState createState() => _FollowButtonState(); } class _FollowButtonState extends State<FollowButton> { int cooldownStarted = DateTime.now().millisecondsSinceEpoch; @override Widget build(BuildContext context) { return Container( width: Get.width * 0.25, decoration: BoxDecoration( borderRadius: BorderRadius.circular(AppStyles.borderRadius * 2.0)), ); } }