Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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"); }
     );
  }
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #flaticon #icon #flutter
ADD COMMENT
Topic
Name
9+1 =