1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-22 14:19:07 +00:00

web/samples_index Drop unused links attribute from config (#1828)

I've confirmed that the `links` configuration attribute is indeed
unused: https://flutter.github.io/samples/next_gen_u_i_demo.html

Dropping unused configuration sounds like a good move. We can
re-introduce it if/when we start displaying the content.

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
This commit is contained in:
Brett Morgan
2023-05-20 03:21:16 +10:00
committed by GitHub
parent 0cf8430a87
commit d855bcc05a
5 changed files with 0 additions and 76 deletions

View File

@@ -62,13 +62,6 @@ Sample _$SampleFromJson(Map json) => $checkedCreate(
(v) =>
(v as List<dynamic>?)?.map((e) => e as String).toList() ??
const []),
links: $checkedConvert(
'links',
(v) =>
(v as List<dynamic>?)
?.map((e) => Link.fromJson(e as Map))
.toList() ??
const []),
type: $checkedConvert('type', (v) => v as String),
date: $checkedConvert(
'date', (v) => v == null ? null : DateTime.parse(v as String)),
@@ -90,7 +83,6 @@ Map<String, dynamic> _$SampleToJson(Sample instance) => <String, dynamic>{
'packages': instance.packages,
'tags': instance.tags,
'platforms': instance.platforms,
'links': instance.links,
'type': instance.type,
'date': instance.date?.toIso8601String(),
'channel': instance.channel,
@@ -113,20 +105,3 @@ Map<String, dynamic> _$ScreenshotToJson(Screenshot instance) =>
'url': instance.url,
'alt': instance.alt,
};
Link _$LinkFromJson(Map json) => $checkedCreate(
'Link',
json,
($checkedConvert) {
final val = Link(
$checkedConvert('text', (v) => v as String),
$checkedConvert('href', (v) => v as String),
);
return val;
},
);
Map<String, dynamic> _$LinkToJson(Link instance) => <String, dynamic>{
'text': instance.text,
'href': instance.href,
};