Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
2.2 kB
0
Indexable
Never
 backgroundColor: Colors.black,
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Container(
                margin: EdgeInsets.symmetric(vertical: 200),
                child: Text('hey',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 24,
                ),),
              ),

              //buttons
              Container(
                child: Column(
                  children: [
                    TextButton(onPressed: (){},
                        child: Container(
                          width: 300,
                          padding: EdgeInsets.all(20),
                          alignment: Alignment.center,
                          decoration: BoxDecoration(
                            color: Colors.green,
                            borderRadius: BorderRadius.circular(8),
                          ),
                          child: Text('True',style: TextStyle(
                            color: Colors.white,
                            fontSize: 18,
                            fontWeight: FontWeight.w400,
                          ),),
                        )
                    ),

                    TextButton(onPressed: (){},
                        child: Container(
                          margin: EdgeInsets.symmetric(vertical: 20),
                          width: 300,
                          padding: EdgeInsets.all(20),
                          alignment: Alignment.center,
                          decoration: BoxDecoration(
                            color: Colors.redAccent,
                            borderRadius: BorderRadius.circular(8),
                          ),
                          child: Text('False',style: TextStyle(
                            color: Colors.white,
                            fontSize: 18,
                            fontWeight: FontWeight.w400,
                          ),),
                        )
                    )
                  ],
                ),
              )
            ],
          ),
        ),
      ),
    );
  }
}
Leave a Comment