material_design_icons_flutter icon indicating copy to clipboard operation
material_design_icons_flutter copied to clipboard

[web] Incorrect trimming result

Open Sammius opened this issue 4 years ago • 5 comments

Only the Web. This example uses the same code with the same icon in MDI and in the native implementation. In this case, the icon is shifted in the MDI:

import 'package:flutter/material.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

void main() async {
  runApp(App());
}

class App extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.light(),
      home: AppCore(),
    );
  }
}

class AppCore extends StatefulWidget {
  @override
  _AppCoreState createState() => _AppCoreState();
}
class _AppCoreState extends State<AppCore> {

  
  @override
  Widget build(BuildContext context) {
    return Row( crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Container(
          child: Icon(Icons.check_box_outline_blank, size: 68),
          // child: Icon(MdiIcons.checkboxBlankOutline, size: 68),
          decoration: BoxDecoration( color: Colors.red ),
          clipBehavior: Clip.antiAlias,
        )
      ],
    );
  }
}

Native:

Screenshot 2020-10-19 at 11 04 37

MDI:

Screenshot 2020-10-19 at 11 05 41

Sammius avatar Oct 19 '20 08:10 Sammius

Well this might be related to #10 , which only appears on android FAB back then.

ziofat avatar Oct 20 '20 17:10 ziofat

Hi @ziofat

Do you think it is possible to fix this?

Sammius avatar Oct 20 '20 18:10 Sammius

I will try. I am more familiar with web so maybe this time I can find what is the real cause of this issue. :)

ziofat avatar Oct 20 '20 19:10 ziofat

any update related to this issue? i also have this problem on flutter web.

DarkHeros09 avatar Oct 04 '21 12:10 DarkHeros09

Any update on this? Still facing this issue

RaymondAtivie avatar Apr 05 '22 23:04 RaymondAtivie