i have code like this
return DefaultTabController(
length: 4,
child: Scaffold(
appBar: AppBar(
title: Text("Halaman Dashboard"),
actions: <Widget>[
IconButton(
onPressed: () {
signOut();
},
icon: Icon(Icons.lock_open),
)
],
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
RaisedButton(
child: Text('Scan'),
onPressed: () async {
try {
String barcode = await BarcodeScanner.scan();
setState(() {
this.barcode = barcode;
});
} on PlatformException catch (error) {
if (error.code == BarcodeScanner.CameraAccessDenied) {
setState(() {
this.barcode =
'Izin kamera tidak diizinkan oleh si pengguna';
});
} else {
setState(() {
this.barcode = 'Error: $error';
});
}
}
},
),
Text(
'Result: $barcode', //THIS
textAlign: TextAlign.center,
),
],
),
)),
);
variable $barcode with comment //THIS has a value like "abc; def; ghi; ..", the value is displayed in one line, how do I display the value in a list like
Name: Abc
addres: def
phone: ghi ?