mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-05 10:19:22 +00:00
frost sign icon
This commit is contained in:
parent
981b7c86d4
commit
2aca5f472b
1 changed files with 19 additions and 12 deletions
|
@ -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,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue