forked from firka/student-legacy
37 lines
1.0 KiB
Dart
37 lines
1.0 KiB
Dart
import 'package:refilc/theme/colors/colors.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class NewContentIndicator extends StatelessWidget {
|
|
const NewContentIndicator({super.key, this.size = 64.0});
|
|
|
|
final double size;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AnimatedContainer(
|
|
duration: const Duration(milliseconds: 200),
|
|
alignment: Alignment.topRight,
|
|
width: size,
|
|
height: size,
|
|
child: AnimatedContainer(
|
|
duration: const Duration(milliseconds: 200),
|
|
height: size / 3.0,
|
|
width: size / 3.0,
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
border: Border.all(
|
|
color: Theme.of(context).scaffoldBackgroundColor,
|
|
width: size / 20.0),
|
|
),
|
|
child: AnimatedContainer(
|
|
duration: const Duration(milliseconds: 200),
|
|
decoration: BoxDecoration(
|
|
color: AppColors.of(context).red,
|
|
shape: BoxShape.circle,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|