Skip to content

Flutter FloatingActionButton are overlapping #4

@foobar167

Description

@foobar167

Two Flutter buttons named FloatingActionButton are overlapping when the screen is horizontal.

It was difficult to fix it in main.dart file because I've not worked with Flutter before.

      floatingActionButton: Align(
          // Align two buttons to right. Alignment to bottom doesn't work.
          alignment: Alignment(1.0, 0),
          child: Column(
            // Align two buttons to bottom. There is no alignment to right.
            mainAxisAlignment: MainAxisAlignment.end,
            children: [
              Padding(
                // Set padding between buttons
                padding: const EdgeInsets.only(bottom: 10.0),
                // Use camera button
                child: FloatingActionButton(
                  onPressed: (){
                    image_picker(0);
                  },
                  child: new Icon(Icons.camera_alt),
                ),
              ),
              // Upload image button
              FloatingActionButton(
                  onPressed: (){
                    image_picker(1);
                  },
                  child: new Icon(Icons.file_upload)
              )
            ],
          ),
      ),

P.S. My version of your starup is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions