Skip to content

Instantly share code, notes, and snippets.

@anzfactory
Created November 15, 2020 03:51
Show Gist options
  • Save anzfactory/63fedc781624258a4c91c11a75377ff4 to your computer and use it in GitHub Desktop.
Save anzfactory/63fedc781624258a4c91c11a75377ff4 to your computer and use it in GitHub Desktop.
特定の画像表示でクラッシュする 🤔
/*
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.51.1)
[✓] Connected device (1 available)
*/
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(
title: Text("画像表示でクラッシュするンゴ"),
),
body: Center(
child: SizedBox.fromSize(
size: Size.fromHeight(200),
child: Image.network(
// この画像表示するとクラッシュする
"http://ketsuekigatakun.com/wp-content/uploads/2019/03/bigstock-146597552.jpg",
// こっちは大丈夫
// "https://higurashianime.com/ogp2.jpg",
),
),
),
),
);
}
}
@anzfactory
Copy link
Author

関係ある? 👀

flutter/flutter#66921

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment