0

enter image description here

so this is my code

Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.white,
        title: const Headline2500(text: 'Transaksi'),
        centerTitle: true,
        automaticallyImplyLeading: false,
        elevation: 0,
        toolbarHeight: 50,
      ),
      backgroundColor: Colors.white,
      body: Column(
        children: [
          Container(
            padding: const EdgeInsets.symmetric(horizontal: 16),
            child: Stack(
              children: [
                SvgPicture.asset(
                  'assets/images/transaction/background_transaksi_3.svg',
                  width: MediaQuery.of(context).size.width,
                ),
                const Padding(
                  padding: EdgeInsets.all(16),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.start,
                    children: [
                      // tagihan
                      Column(
                        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text(
                            'Tagihan Bulan Ini',
                            style: TextStyle(
                                color: Color(0xff777777), fontSize: 12),
                          ),
                          SizedBox(
                            height: 10,
                          ),
                          Text(
                            'Rp 500.000',
                            style: TextStyle(
                                color: Color(0xff333333),
                                fontSize: 16,
                                fontWeight: FontWeight.bold),
                          )
                        ],
                      ),

                      // divider
                      Padding(
                        padding: EdgeInsets.all(10),
                        child: VerticalDivider(
                          color: Colors.black,
                          thickness: 1,
                          width: 20,
                          indent: 5,
                          endIndent: 5,
                        ),
                      ),

                      // pinjaman
                      Column(
                        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text('Pinjaman Aktif',
                              style:
                                  TextStyle(color: Colors.grey, fontSize: 12)),
                          SizedBox(
                            height: 10,
                          ),
                          Text('Rp 900.000',
                              style: TextStyle(
                                  color: Colors.black,
                                  fontWeight: FontWeight.bold,
                                  fontSize: 16))
                        ],
                      )
                    ],
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }

any help would be much appreciated i'm a newbie in flutter and still learning about layouting, it's look like some widget are not showing if wrapped with some widgets..

i'm a newbie in flutter and still learning about layouting, it's look like some widget are not showing if wrapped with some widgets..

i'm a newbie in flutter and still learning about layouting, it's look like some widget are not showing if wrapped with some widgets..

1 Answer 1

1

Wrap your Row with IntrinsicHeight.

IntrinsicHeight(
  child: Row(
    children: <Widget>[
      //your children here
    ],
  ),
)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.