Fakultas Ilmu Komputer UI

Commit 8845811c authored by Tsamara Esperanti Erwin's avatar Tsamara Esperanti Erwin
Browse files

[CHORES] Fix overflow on goods donation page

parent fba6b7b5
Pipeline #62331 passed with stages
in 8 minutes and 20 seconds
......@@ -97,15 +97,20 @@ class _DonasiBarangState extends State<DonasiBarang> {
.copyWith(fontSize: 18),
),
Container(
margin: const EdgeInsets.only(top: 10),
margin: const EdgeInsets.only(top: 10, bottom: 20),
width: MediaQuery.of(context).size.width,
child: Text(
'Silakan isi detil barang yang ingin didonasikan',
'Silakan isi detil barang yang ingin didonasikan.',
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(fontSize: 18),
)),
Text('Tekan lambang + untuk menambah barang.',
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(fontSize: 10, color: Colors.black54),)
],
),
),
......@@ -151,7 +156,7 @@ class _DonasiBarangState extends State<DonasiBarang> {
),
const SizedBox(width: 70),
Container(
width: MediaQuery.of(context).size.width / 1.8,
width: MediaQuery.of(context).size.width / 2,
height: 80,
color: Colors.white,
child: Padding(
......@@ -179,7 +184,7 @@ class _DonasiBarangState extends State<DonasiBarang> {
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(fontSize: 18),
.copyWith(fontSize: 16),
),
Radio(
key: const Key('DLV-button'),
......@@ -198,7 +203,7 @@ class _DonasiBarangState extends State<DonasiBarang> {
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(fontSize: 18),
.copyWith(fontSize: 16),
),
],
),
......@@ -229,8 +234,6 @@ class _DonasiBarangState extends State<DonasiBarang> {
}
if (_formKey.currentState.validate()) {
_formKey.currentState.save();
print(goodsDescList);
print(goodsQtyList);
for (var i = 0; i < goodsDescList.length; i++) {
if (i == goodsDescList.length-1) {
isFinal = true;
......@@ -362,7 +365,7 @@ class _GoodsFormState extends State<GoodsForm> {
),
const SizedBox(width: 20),
Container(
width: MediaQuery.of(context).size.width / 1.8,
width: MediaQuery.of(context).size.width / 2,
height: 50,
child: TextFormField(
key: const Key('goods-desc'),
......@@ -402,7 +405,7 @@ class _GoodsFormState extends State<GoodsForm> {
),
const SizedBox(width: 70),
Container(
width: MediaQuery.of(context).size.width / 1.8,
width: MediaQuery.of(context).size.width / 2,
height: 50,
color: Colors.white,
child: TextFormField(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment