Browse Source

refactor(neon): make nextcloud logo size adjustable

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/886/head
Nikolas Rimikis 1 year ago
parent
commit
67a151fc19
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 14
      packages/neon/neon/lib/src/widgets/nextcloud_logo.dart

14
packages/neon/neon/lib/src/widgets/nextcloud_logo.dart

@ -2,15 +2,25 @@ import 'package:flutter/widgets.dart';
import 'package:neon/l10n/localizations.dart';
import 'package:vector_graphics/vector_graphics.dart';
/// The Nextcloud logo, in widget form.
///
/// For guidelines on using the Nextcloud logo, visit https://nextcloud.com/trademarks.
class NextcloudLogo extends StatelessWidget {
/// Creates a widget that shows the Nextcloud logo.
const NextcloudLogo({
this.size = 100,
super.key,
});
/// The size of the logo in logical pixels.
///
/// The logo will be fit into a square this size.
final double size;
@override
Widget build(final BuildContext context) => VectorGraphic(
width: 100,
height: 100,
width: size,
height: size,
loader: const AssetBytesLoader(
'assets/logo_nextcloud.svg.vec',
packageName: 'neon',

Loading…
Cancel
Save