mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-15 02:05:58 -07:00
feature: Added new icon (#140)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
5c560e54b5
commit
b8ad2a4ac6
118 changed files with 66 additions and 76 deletions
|
|
@ -1,8 +1,11 @@
|
|||
import 'package:fladder/util/theme_extensions.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'dart:ui' as ui;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
import 'package:fladder/util/theme_extensions.dart';
|
||||
|
||||
class FladderIcon extends StatelessWidget {
|
||||
final double size;
|
||||
const FladderIcon({this.size = 100, super.key});
|
||||
|
|
@ -24,13 +27,10 @@ class FladderIcon extends StatelessWidget {
|
|||
],
|
||||
);
|
||||
},
|
||||
child: RotatedBox(
|
||||
quarterTurns: 1,
|
||||
child: SvgPicture.asset(
|
||||
"icons/fladder_icon_grayscale.svg",
|
||||
width: size,
|
||||
colorFilter: const ColorFilter.mode(Colors.white, BlendMode.srcIn),
|
||||
),
|
||||
child: SvgPicture.asset(
|
||||
"icons/fladder_icon_grayscale.svg",
|
||||
width: size,
|
||||
colorFilter: const ColorFilter.mode(Colors.white, BlendMode.srcIn),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
@ -45,13 +45,10 @@ class FladderIconOutlined extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return RotatedBox(
|
||||
quarterTurns: 1,
|
||||
child: SvgPicture.asset(
|
||||
"icons/fladder_icon_outline.svg",
|
||||
width: size,
|
||||
colorFilter: ColorFilter.mode(color ?? context.colors.onSurfaceVariant, BlendMode.srcATop),
|
||||
),
|
||||
return SvgPicture.asset(
|
||||
"icons/fladder_icon_outline.svg",
|
||||
width: size,
|
||||
colorFilter: ColorFilter.mode(color ?? context.colors.onSurfaceVariant, BlendMode.srcATop),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue