0

I want to send the "See More" button in the middle to the right.

enter image description here

Row(
            children: <Widget>[
              Stack(
                children: const <Widget>[
                  Align(
                    alignment: Alignment.topLeft,
                    child: Padding(
                      padding: EdgeInsets.all(8.0),
                      child: Text(
                        'Your Watchlist',
                        style: TextStyle(
                          color: Colors.white,
                          fontSize: 20,
                          fontWeight: FontWeight.bold,
                        ),
                      ),
                    ),
                  ),
                ],
              ),
              TextButton(
                child: const Text(
                  'See More >>',
                  style: TextStyle(color: Colors.yellow, fontSize: 16),
                ),
                onPressed: () {
                  Navigator.of(context).push(MaterialPageRoute(
                    builder: (context) => movie_list(),
                  ));
                },
              ),
            ],
          ),

Also, how can I pull data from firebase to listview items in the form of cards at the bottom, can you suggest a source on this subject?

Md. Yeasin Sheikh
  • 54,221
  • 7
  • 29
  • 56

2 Answers2

0

You can achieve this by 2 methods

Option1

Add

mainAxisAlignment: MainAxisAlignment.spaceBetween,

To the row widget

Or

Option2

add

Spacer()

Between the see more and the stack widget

Kaushik Chandru
  • 15,510
  • 2
  • 12
  • 30
0

You can include Spacer() on middle portion,

Row
 - WidgetA
 - Spacer()
 - WidgetB
Md. Yeasin Sheikh
  • 54,221
  • 7
  • 29
  • 56