[web] [fix] Cache resource data only if the fetching succeed (#103816)

This commit is contained in:
Dacian Florea
2022-05-25 02:23:06 +03:00
committed by GitHub
parent f2e6d4782c
commit 680bc17cde
5 changed files with 232 additions and 28 deletions

View File

@@ -0,0 +1,18 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
Future<void> main() async {
runApp(Scaffold(
body: Center(
child: Column(
children: const <Widget>[
Icon(Icons.ac_unit),
Text('Hello, World', textDirection: TextDirection.ltr),
],
),
),
));
}

View File

@@ -8,6 +8,7 @@ flutter:
assets:
- lib/a.dart
- lib/b.dart
uses-material-design: true
dependencies:
flutter: