frost sign icon

This commit is contained in:
julian 2024-05-06 11:50:14 -06:00
parent 981b7c86d4
commit 2aca5f472b

View file

@ -8,29 +8,36 @@
* *
*/ */
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/flutter_svg.dart'; import 'package:flutter_svg/flutter_svg.dart';
import 'package:stackwallet/themes/theme_providers.dart'; import 'package:stackwallet/themes/stack_colors.dart';
import 'package:stackwallet/utilities/assets.dart';
class FrostSignNavIcon extends ConsumerWidget { class FrostSignNavIcon extends ConsumerWidget {
const FrostSignNavIcon({super.key}); const FrostSignNavIcon({super.key});
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
return SvgPicture.file( return Container(
File( decoration: BoxDecoration(
ref.watch( color: Theme.of(context)
themeProvider.select( .extension<StackColors>()!
// TODO: [prio=high] update themes with icon asset .bottomNavIconIcon
(value) => value.assets.stackIcon, .withOpacity(0.4),
), borderRadius: BorderRadius.circular(
24,
),
),
child: Padding(
padding: const EdgeInsets.all(6.0),
child: SvgPicture.asset(
Assets.svg.pencil,
width: 12,
height: 12,
color: Theme.of(context).extension<StackColors>()!.bottomNavIconIcon,
), ),
), ),
width: 24,
height: 24,
); );
} }
} }