mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Rather than managing all the Material Design icons manually, we now manage them using an icon font. The icon font contains glyphs for each icon in an efficient vector format. This patch updates the FLX tooling to include the MaterialIcons font and updates the Icon widget to use the font instead of asset images. Fixes #2313 Fixes #2218 Fixes #2009 Fixes #994
27 lines
805 B
Dart
27 lines
805 B
Dart
// Copyright 2016 The Chromium 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 'dart:async';
|
|
import 'dart:io';
|
|
|
|
import 'src/flx.dart' as flx;
|
|
|
|
/// Assembles a Flutter .flx file from a pre-existing manifest descriptor and a
|
|
/// pre-compiled snapshot.
|
|
Future<int> assembleFlx({
|
|
Map manifestDescriptor: const {},
|
|
File snapshotFile: null,
|
|
String assetBasePath: flx.defaultAssetBasePath,
|
|
String outputPath: flx.defaultFlxOutputPath,
|
|
String privateKeyPath: flx.defaultPrivateKeyPath
|
|
}) async {
|
|
return flx.assemble(
|
|
manifestDescriptor: manifestDescriptor,
|
|
snapshotFile: snapshotFile,
|
|
assetBasePath: assetBasePath,
|
|
outputPath: outputPath,
|
|
privateKeyPath: privateKeyPath
|
|
);
|
|
}
|