You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/new_views/common_widgets/add_floating_button.dart

18 lines
525 B
Dart

import 'package:flutter/material.dart';
import 'package:test_sa/extensions/context_extension.dart';
import '../app_style/app_color.dart';
class AddFloatingButton extends StatelessWidget {
final VoidCallback onPressed;
const AddFloatingButton({Key key, @required this.onPressed}) : super(key: key);
@override
Widget build(BuildContext context) {
return FloatingActionButton(
onPressed: onPressed,
child: Icon(Icons.add , color: context.isDark? AppColor.neutral50:AppColor.neutral30, ),
);
}
}