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.
19 lines
564 B
Dart
19 lines
564 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:test_sa/extensions/context_extension.dart';
|
|
|
|
import '../app_style/app_color.dart';
|
|
|
|
class AppFloatingButton extends StatelessWidget {
|
|
final IconData icon;
|
|
final VoidCallback onPressed;
|
|
const AppFloatingButton({Key key, @required this.icon, @required this.onPressed}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return FloatingActionButton(
|
|
onPressed: onPressed,
|
|
child: Icon(icon, color: context.isDark ? AppColor.neutral50 : AppColor.neutral30),
|
|
);
|
|
}
|
|
}
|