32 lines
661 B
Dart
32 lines
661 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ChatbotFab extends StatelessWidget {
|
|
final VoidCallback onTap;
|
|
final bool isOpen;
|
|
|
|
const ChatbotFab({
|
|
super.key,
|
|
required this.onTap,
|
|
required this.isOpen,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return FloatingActionButton(
|
|
heroTag: 'chatbot_fab',
|
|
// backgroundColor: Color(0XFF00999E),
|
|
backgroundColor: Colors.white,
|
|
elevation: 6,
|
|
onPressed: onTap,
|
|
child: ClipOval(
|
|
child: Image.asset(
|
|
'assets/chatbot_icon.png',
|
|
width: 70,
|
|
height: 70,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|