Baishun's Space

Flutter tricks and tips 1

By Baishun on Feb 6, 2020
use flutter to build an app

full size container

SizedBox.expand(
  child: Container(
    child:Text('full size container')
  )
)

blur decoration of a container

Container(
  decoration: const BoxDecoration(
    image: DecorationImage(
      image: AssetImage(
        "assets/images/start_screen_bk.png",
      ),
      fit: BoxFit.fitHeight,
    ),
  ),
  child: BackdropFilter(
    filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
    child: Container(
      decoration: BoxDecoration(color: Colors.white.withOpacity(0.0)),
      child: YourChildWidgetHere,
    ),
  ),
)
For business cooperation or you have any questions, please send email to : lecy.cc.app@gmail.com
© Copyright 2024 by Baishun Space. Built with ♥ by Lecy. Origin theme of this blog is from ixartz. Social Icons are copied from astro-social-share