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

Working on Web and Android but not on iOS. #144

Open
rmahfouz opened this issue May 6, 2024 · 0 comments
Open

Working on Web and Android but not on iOS. #144

rmahfouz opened this issue May 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rmahfouz
Copy link

rmahfouz commented May 6, 2024

Steps to Reproduce
I added an auto_size_text widget to solve this problem despite using expanded and flexible.
here
I used maxLines:2, and It worked on the web and Android, but missing characters on iOS, as same as if used maxLines in a normal text Widget.
iOs

`Padding(
                  padding: const EdgeInsets.all(20.0),
                  child: GridView.count(crossAxisCount: 3,
                      scrollDirection: Axis.vertical,
                      mainAxisSpacing: 16,
                      crossAxisSpacing: 16,
                      primary: false,
                      children: <Widget>[
                        ElevatedButton(
                            onPressed: () {
                              Navigator.push(context, MaterialPageRoute(builder: (context) => const hypona_correction()));
                            },
                            style: ElevatedButton.styleFrom(
                              shape: RoundedRectangleBorder(
                                borderRadius: BorderRadius.circular(32.0),), backgroundColor: const Color(0xFFFFFFFF), disabledForegroundColor: const Color(0xFF959595).withOpacity(0.38), disabledBackgroundColor: const Color(0xFF959595).withOpacity(0.12),
                              elevation: 2,
                            ),
                            child:
                             const Column(
                              mainAxisAlignment: MainAxisAlignment.center,
                              children: [
                                Padding(
                                  padding: EdgeInsets.all(5.0),
                                  child: Icon(Icons.science,
                                    color: Color(0xFF560027),
                                  ),
                                ),
                                AutoSizeText('HypoNa \nCorrection',
                                  textAlign: TextAlign.center,
                                  maxLines: 2,
                                  style: TextStyle(
                                    color: Color(0xFF880e4f),

                                  ),
                                ),
                              ],
                                                         )
                        ),`

Version

  • Flutter version: [3.19.6]
  • auto_size_text version: [3.0.0]
@rmahfouz rmahfouz added the bug Something isn't working label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant