Answers for "how to use flaticon as icon in flutter"

0

how to use flaticon as icon in flutter

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"); }
     );
  }
}
Posted by: Guest on December-20-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language