skip to Main Content

Just started to learn fultter and I am trying to create a login page on flutter for an app and I found an image as the background of the login page. Is it possible to add some text and input field on the image ? Please let me know if there’s a way to do so. Thanks.

2

Answers


  1. Yes, You have to use Stack widget for that. Initial one has your image and for textField you can add widget with Position.

    Login or Signup to reply.
  2.  Container(
      decoration: const BoxDecoration(
        image: DecorationImage(
          fit: BoxFit.cover,
          image: AssetImage('asset_image'),
        ),
      ),
      child: Column(
        children: [
          // Form field
        ],
      ),
    );
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search