简介
类似带有scale属性的AssetImage
基本使用
- 使用方法与AssetImage类似
- 可以理解为带有scale属性的AssetImage
实例演示
import 'package:flutter/material.dart';
class ExactAssetImageDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Image(
image: ExactAssetImage('assets/images/food02.jpeg', scale: 1.5),
),
SizedBox(
height: 20.0,
),
Image(
image: ExactAssetImage('assets/images/food02.jpeg', scale: 1.0),
),
],
);
}
}