mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 02:59:28 +00:00
* feat: add AbsIcons font and update pubspec.yaml for font integration * feat: implement library selection in YouPage * fix: optimize authenticatedApi provider to not rebuild unnecessarily * feat: add LibrarySwitchChip widget and integrate it into YouPage and ScaffoldWithNavBar * feat: enhance library selection UI with refresh functionality and error handling * fix: change library switcher activation from long press to double tap * feat: show current library on nav bar * feat: refactor LibraryBrowserPage to use CustomScrollView and enhance app bar with dynamic library icon and title
27 lines
673 B
Dart
27 lines
673 B
Dart
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'),
|
|
);
|
|
}
|
|
}
|