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

IntrinsicWidth overflow #53

Open
Francesco-FL opened this issue Aug 21, 2022 · 0 comments
Open

IntrinsicWidth overflow #53

Francesco-FL opened this issue Aug 21, 2022 · 0 comments

Comments

@Francesco-FL
Copy link

When I put the Math.tex in an IntrinsicWidth and use characters like - + * etc .. it overflows

Immagine 2022-08-21 175328

import 'package:flutter/material.dart';
import 'package:flutter_math_fork/flutter_math.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      builder: (context, child) {
        return Scaffold(
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              
              children: [
                IntrinsicWidth(child: Math.tex('555-222', options: MathOptions(fontSize: 20))),
                SizedBox(height: 100),
                IntrinsicWidth(child: Math.tex('5555555+222', options: MathOptions(fontSize: 20))),
                SizedBox(height: 100),
                IntrinsicWidth(child: Math.tex('555***222', options: MathOptions(fontSize: 20))),
              ],
            ),
          ),
        );
      }
    );
  }
}

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

No branches or pull requests

1 participant