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