Fakultas Ilmu Komputer UI

Commit 4a75da29 authored by jovi_013's avatar jovi_013
Browse files

[CHORES] Remove comments

parent 283740e7
Pipeline #81864 passed with stages
in 18 minutes and 2 seconds
......@@ -66,12 +66,8 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
linkController = TextEditingController(text: widget.kegiatan.links);
tanggalKegiatan = '${DateFormat('yyyy-MM-dd HH:mm').format(widget.kegiatan.timeStart)}';
zonaCurrent = widget.kegiatan.zonaWaktu;
// TODO: write init images
oldKegiatanImages = widget.kegiatan.images;
allKegiatanImages.addAll(oldKegiatanImages);
// images = MultiImagePicker.pickImages(widget.kegiatan.images) as List<Asset>;
// images = widget.kegiatan.images as List<Asset>;
// images = images.map<Asset>(widget.kegiatan.images).toList();
}
@override
......@@ -121,11 +117,9 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
),
),
);
// throw UnimplementedError();
}
Future<void> _submitData() async {
// TODO: implement submit data
final form = _formKey.currentState;
if (_formKey.currentState.validate()) {
form.save();
......@@ -175,10 +169,9 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
newKegiatanData['time_start'] = newKegiatanData['time_start']+'+0700';
}
final _bloc = KegiatanBloc(widget.lokasi.placeId); // tdnya widget.placeId
final _bloc = KegiatanBloc(widget.lokasi.placeId);
await _bloc.updateKegiatan(newKegiatanData, widget.lokasi.placeId, widget.kegiatan.id);
// final kegiatan = await _bloc.fetchDetailKegiatan(widget.lokasi.placeId, widget.kegiatan.id);
final route = MaterialPageRoute(
builder: (_) => DetailPostKegiatanPage(
kegiatan: widget.kegiatan, lokasi: widget.lokasi)
......@@ -187,11 +180,6 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
await Future.delayed(Duration(seconds: 2));
await Navigator.pushAndRemoveUntil(context, route, (route) => route.isFirst);
// successDialog(context);
// Timer(const Duration(seconds: 2), () {
// Navigator.pop(context);
// Navigator.pop(context);
// }
} else {
failedDialog(context, 'default');
}
......@@ -240,7 +228,7 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
enableCamera: true,
selectedAssets: images,
materialOptions: MaterialOptions(
actionBarTitle: widget.lokasi.name, // tdnya widget.nama
actionBarTitle: widget.lokasi.name,
actionBarColor: '#ff3A903A',
statusBarColor: '#ff347D34',
useDetailsView: true,
......@@ -423,8 +411,6 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
),
),
Row(children: <Widget>[
// SizedBox(
// width: 186.0,
Expanded(
child: TextButton(
key: const Key('Button Tanggal & Waktu Kegiatan'),
......@@ -512,7 +498,6 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
await pickImages();
},
child: Container(
// width: MediaQuery.of(context).size.width * 0.35,
padding: const EdgeInsets.all(9.0),
alignment: Alignment.centerLeft,
decoration: BoxDecoration(
......@@ -561,9 +546,6 @@ class _UpdateKegiatanState extends State<UpdateKegiatan> {
}
Widget _showImage(dynamic item) {
print('------------------');
print(item);
print('------------------');
if (item is Asset) {
print(item.runtimeType);
return AssetThumb(
......
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