mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import 'package:fladder/screens/shared/fladder_icon.dart';
|
||||
import 'package:fladder/util/application_info.dart';
|
||||
import 'package:fladder/util/string_extensions.dart';
|
||||
import 'package:fladder/util/theme_extensions.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
class FladderLogo extends ConsumerWidget {
|
||||
const FladderLogo({super.key});
|
||||
|
|
@ -19,7 +21,7 @@ class FladderLogo extends ConsumerWidget {
|
|||
spacing: 16,
|
||||
runSpacing: 8,
|
||||
children: [
|
||||
const FladderIcon(),
|
||||
Transform.translate(offset: const Offset(0, -8), child: const FladderIcon(size: 75)),
|
||||
Text(
|
||||
ref.read(applicationInfoProvider).name.capitalize(),
|
||||
style: context.textTheme.displayLarge,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue