Fakultas Ilmu Komputer UI

Commit 64bc9fee authored by Tsamara Esperanti Erwin's avatar Tsamara Esperanti Erwin
Browse files

[REFACTOR] Add red asterisk on goods donation form

parent 25467abe
Pipeline #60425 passed with stages
in 6 minutes and 41 seconds
......@@ -149,7 +149,16 @@ class _DonasiBarangFormState extends State<DonasiBarangForm> {
children: [
Row(
children: [
Text('Jenis Barang', style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18),),
RichText(
text: TextSpan(
text: 'Jenis Barang',
style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18),
children: <TextSpan>[
TextSpan(text: '*',
style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18, color: Colors.red)),
],
),
),
const SizedBox(width: 20),
Container(
width: 187,
......@@ -166,7 +175,16 @@ class _DonasiBarangFormState extends State<DonasiBarangForm> {
const SizedBox(height: 20,),
Row(
children: [
Text('Jumlah', style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18),),
RichText(
text: TextSpan(
text: 'Jumlah',
style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18),
children: <TextSpan>[
TextSpan(text: '*',
style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18, color: Colors.red)),
],
),
),
const SizedBox(width: 70),
Container(
width: 187,
......@@ -204,7 +222,16 @@ class _DonasiBarangFormState extends State<DonasiBarangForm> {
deliveryWidget = Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Alamat', style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18),),
RichText(
text: TextSpan(
text: 'Alamat',
style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18),
children: <TextSpan>[
TextSpan(text: '*',
style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 18, color: Colors.red)),
],
),
),
const SizedBox(width: 70),
Container(
width: 187,
......
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