Skip to content

[web] Fonts: Material fonts/icons not rendering #32245

@martinrybak

Description

@martinrybak

Describe the bug
Material icons do not render on web.

To Reproduce

import 'package:flutter_web/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Container(
        color: Colors.white,
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Icon(Icons.print),
            Icon(Icons.settings),
            Icon(Icons.undo),
            Icon(Icons.person),
            Icon(Icons.location_on),
          ],
        ),
      ),
    );
  }
}

Expected behavior
Material design icons should render as they do on mobile.

Screenshots

Web

web

Mobile

mobile

Desktop (please complete the following information):

  • OS: mac
  • Browser chrome 73.0.3683.86, safari 12.0.3
  • Dart Version 2.2.1
  • Flutter Web commit SHA f9288f36fed5f3fda825082ac80f46eec6e7f62f

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityplatform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions