[web] [fix] Cache resource data only if the fetching succeed (#103816)
This commit is contained in:
@@ -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),
|
||||
],
|
||||
),
|
||||
),
|
||||
));
|
||||
}
|
||||
@@ -8,6 +8,7 @@ flutter:
|
||||
assets:
|
||||
- lib/a.dart
|
||||
- lib/b.dart
|
||||
uses-material-design: true
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
Reference in New Issue
Block a user