SimpleCloudNotifier/flutter/lib/bottom_fab/center_about.dart

21 lines
463 B
Dart
Raw Normal View History

2024-02-10 19:57:17 +01:00
import 'package:flutter/material.dart';
class CenterAbout extends StatelessWidget {
final Offset position;
final Widget child;
const CenterAbout({super.key, required this.position, required this.child});
@override
Widget build(BuildContext context) {
return Positioned(
top: position.dy,
left: position.dx,
child: FractionalTranslation(
translation: const Offset(-0.5, -0.5),
child: child,
),
);
}
}