font_awesome_icon_class 0.0.6 copy "font_awesome_icon_class: ^0.0.6" to clipboard
font_awesome_icon_class: ^0.0.6 copied to clipboard

This package help solve the problem of not being able to display "font_awesome_icon_class" in the mobile screen. This package is made with the help of "font_awesome_flutter".

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:font_awesome_icon_class/src/font_awesome_icon_class.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FontAwesomeIconClass demo',
      theme: ThemeData(
        useMaterial3: true,
        primarySwatch: Colors.blue,
      ),
      home: ExamplePage(),
    );
  }
}

class ExamplePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Class-Name-To-Icon Example'),
        ),
        body: Column(
          children: [
            // this is how you normally use font_awesome_flutter package
            const FaIcon(
              FontAwesomeIcons.at,
            ),

            // you pass the class inside fontAwsomeIconClass function and it returns an IconData
            faClassToIcon('fa fa-at',
                size: 14,
                semanticLabel: "@",
                color: Colors.blue,
                textDirection: TextDirection.ltr),

            faClassToIcon('fa fa-bed',
                size: 20,
                semanticLabel: "bed",
                color: Colors.blue,
                textDirection: TextDirection.ltr),

            faClassToIcon('fa fa-facebook',
                size: 35,
                semanticLabel: "@",
                color: Colors.blue,
                textDirection: TextDirection.ltr),
          ],
        ));
  }
}
8
likes
160
points
396
downloads

Publisher

unverified uploader

Weekly Downloads

This package help solve the problem of not being able to display "font_awesome_icon_class" in the mobile screen. This package is made with the help of "font_awesome_flutter".

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, font_awesome_flutter

More

Packages that depend on font_awesome_icon_class