mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-04 17:29:32 +00:00
feat: implement library selection in YouPage
This commit is contained in:
parent
04882f5f4a
commit
e21977b894
7 changed files with 430 additions and 32 deletions
|
|
@ -13,6 +13,7 @@
|
|||
///
|
||||
///
|
||||
///
|
||||
library;
|
||||
// ignore_for_file: constant_identifier_names
|
||||
|
||||
import 'package:flutter/widgets.dart' show IconData;
|
||||
|
|
|
|||
27
lib/shared/widgets/vaani_logo.dart
Normal file
27
lib/shared/widgets/vaani_logo.dart
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class VaaniLogo extends StatelessWidget {
|
||||
const VaaniLogo({
|
||||
super.key,
|
||||
this.size,
|
||||
this.duration = const Duration(milliseconds: 750),
|
||||
this.curve = Curves.fastOutSlowIn,
|
||||
});
|
||||
|
||||
final double? size;
|
||||
final Duration duration;
|
||||
final Curve curve;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final IconThemeData iconTheme = IconTheme.of(context);
|
||||
final double? iconSize = size ?? iconTheme.size;
|
||||
return AnimatedContainer(
|
||||
width: iconSize,
|
||||
height: iconSize,
|
||||
duration: duration,
|
||||
curve: curve,
|
||||
child: Image.asset('assets/images/vaani_logo_foreground.png'),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue