📜  如何在 Flutter 中使用 flaticon 作为图标 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.877000             🧑  作者: Mango

代码示例1
import 'package:flat_icons_flutter/flat_icons_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return new IconButton(
      // Use the FlatIcons class for the IconData
      icon: new Icon(FlatIcons.home),
      onPressed: () { print("Pressed"); }
     );
  }
}