Remove the networked image from the example (#123728)

This commit is contained in:
Greg Spencer
2023-03-29 18:58:25 -07:00
committed by GitHub
parent f266cccdea
commit c26d1de4a0
3 changed files with 17 additions and 13 deletions

View File

@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for [FittedBox].
import 'package:flutter/material.dart';
/// Flutter code sample for [FittedBox].
void main() => runApp(const FittedBoxApp());
class FittedBoxApp extends StatelessWidget {
@@ -32,12 +32,12 @@ class FittedBoxExample extends StatelessWidget {
return Container(
height: 400,
width: 300,
color: Colors.red,
child: FittedBox(
color: Colors.blue,
child: const FittedBox(
// TRY THIS: Try changing the fit types to see how they change the way
// the placeholder fits into the container.
fit: BoxFit.fill,
child: Image.network(
'https://flutter.github.io/assets-for-api-docs/assets/widgets/owl-2.jpg',
),
child: Placeholder(),
),
);
}