Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web] Incorrect trimming result #28

Open
Sammius opened this issue Oct 19, 2020 · 5 comments
Open

[web] Incorrect trimming result #28

Sammius opened this issue Oct 19, 2020 · 5 comments

Comments

@Sammius
Copy link

Sammius commented Oct 19, 2020

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

@ziofat
Copy link
Owner

ziofat commented Oct 20, 2020

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

@Sammius
Copy link
Author

Sammius commented Oct 20, 2020

Hi @ziofat

Do you think it is possible to fix this?

@ziofat
Copy link
Owner

ziofat commented Oct 20, 2020

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

@DarkHeros09
Copy link

DarkHeros09 commented Oct 4, 2021

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

@RaymondAtivie
Copy link

Any update on this? Still facing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants