mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

* add trailing commas on list/map/parameters * add trailing commas on Invocation with nb of arg>1 * add commas for widget containing widgets * add trailing commas if instantiation contains trailing comma * revert bad change
41 lines
1.1 KiB
Dart
41 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../gallery/demo.dart';
|
|
|
|
class ImagesDemo extends StatelessWidget {
|
|
static const String routeName = '/images';
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return TabbedComponentDemoScaffold(
|
|
title: 'Animated images',
|
|
demos: <ComponentDemoTabData>[
|
|
ComponentDemoTabData(
|
|
tabName: 'WEBP',
|
|
description: '',
|
|
exampleCodeTag: 'animated_image',
|
|
demoWidget: Semantics(
|
|
label: 'Example of animated WEBP',
|
|
child: Image.asset(
|
|
'animated_images/animated_flutter_stickers.webp',
|
|
package: 'flutter_gallery_assets',
|
|
),
|
|
),
|
|
),
|
|
ComponentDemoTabData(
|
|
tabName: 'GIF',
|
|
description: '',
|
|
exampleCodeTag: 'animated_image',
|
|
demoWidget: Semantics(
|
|
label: 'Example of animated GIF',
|
|
child:Image.asset(
|
|
'animated_images/animated_flutter_lgtm.gif',
|
|
package: 'flutter_gallery_assets',
|
|
),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|