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

Does not work as expected #109

Open
Terranic opened this issue Mar 18, 2022 · 0 comments
Open

Does not work as expected #109

Terranic opened this issue Mar 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Terranic
Copy link

Steps to Reproduce
Autotext does not use the amount of space available.

Code sample

 return Scaffold(
      appBar: AppBar(
          elevation: 0,
          title: Text(
            "Wählen Sie ein Ziel",
            style: Theme.of(context)
                .textTheme
                .headline5
                ?.copyWith(color: Colors.white),
          ),
          backgroundColor: Colors.green,
          leading: IconButton(
            icon: const Icon(Icons.arrow_back),
            onPressed: () => Navigator.pop(context),
          )),
      body: Column(
        children: [
          Container(
            child: Padding(
              padding: const EdgeInsets.symmetric(horizontal: 20.0),
              child: AutoSizeText(
                "Wählen Sie hier ein Ziel, für das Sie eines erfassen wollen. "
              ),
            ),
            width: size.width,
            height: size.height * 0.16,
            decoration: const BoxDecoration(
                gradient: LinearGradient(
                  begin: Alignment.bottomCenter,
                  end: Alignment.topCenter,
                  colors: [Colors.lightGreen, Colors.green],
                ),
                color: Colors.green,
                borderRadius: BorderRadius.only(
                    bottomLeft: Radius.circular(30),
                    bottomRight: Radius.circular(30))),
          ),
          Expanded(....

Screenshots
image

Version

  • Flutter version: 2.10.3
  • auto_size_text version: 3.0.0
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