auto_size_text icon indicating copy to clipboard operation
auto_size_text copied to clipboard

Does not work as expected

Open Terranic opened this issue 3 years ago • 0 comments

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

Terranic avatar Mar 18 '22 21:03 Terranic