remelem mukszik
This commit is contained in:
26
filcnaplo_mobile_ui/lib/premium/components/avatar_stack.dart
Executable file
26
filcnaplo_mobile_ui/lib/premium/components/avatar_stack.dart
Executable file
@@ -0,0 +1,26 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AvatarStack extends StatelessWidget {
|
||||
const AvatarStack({Key? key, required this.children}) : super(key: key);
|
||||
|
||||
final List<Widget> children;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Stack(
|
||||
children: [
|
||||
if (children.isNotEmpty) children[0],
|
||||
if (children.length > 1)
|
||||
Transform.translate(
|
||||
offset: const Offset(-20.0, 0.0),
|
||||
child: children[1],
|
||||
),
|
||||
if (children.length > 2)
|
||||
Transform.translate(
|
||||
offset: const Offset(-40.0, 0.0),
|
||||
child: children[2],
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user