项目文件夹

文件
wehub-resource-sync bb087aad19
CI / format (push) Failing after 2s
CI / packaging (push) Failing after 0s
CI / test (push) Failing after 3s
chore: import upstream snapshot with attribution
2026-07-13 11:58:56 +08:00

38 行
828 B
Dart

import 'package:flutter/material.dart';
import 'package:localsend_app/gen/assets.gen.dart';
class LocalSendLogo extends StatelessWidget {
final bool withText;
const LocalSendLogo({required this.withText});
@override
Widget build(BuildContext context) {
final logo = ColorFiltered(
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary,
BlendMode.srcATop,
),
child: Assets.img.logo512.image(
width: 200,
height: 200,
),
);
if (withText) {
return Column(
children: [
logo,
const Text(
'LocalSend',
style: TextStyle(fontSize: 36, fontWeight: FontWeight.bold),
textAlign: TextAlign.center,
),
],
);
} else {
return logo;
}
}
}