Pelatihan dan Sertifikasi BNSP Junior Mobile Programmer: Langkah Awal Menuju Karir Gemilang
11-Oct-2025
Pembuat : Admin Mobile Faculty
Kategori : Media Pembelajaran
import package:flutter/material.dart;
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: Aplikasi To-Do List,
home: TodoListApp(),
);
}
}
class TodoListApp extends StatefulWidget {
@override
_TodoListAppState createState() => _TodoListAppState();
}
class _TodoListAppState extends State<TodoListApp> {
final List<String> _tasks = [];
final TextEditingController _controller = TextEditingController();
void _addTask() {
if (_controller.text.isNotEmpty) {
setState(() {
_tasks.add(_controller.text);
_controller.clear();
});
}
}
void _removeTask(int index) {
setState(() {
_tasks.removeAt(index);
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(Daftar Tugas),
),
body: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
TextField(
controller: _controller,
decoration: InputDecoration(labelText: Masukkan Tugas),
),
ElevatedButton(
onPressed: _addTask,
child: Text(Tambah Tugas),
),
Expanded(
child: ListView.builder(
itemCount: _tasks.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(_tasks[index]),
trailing: IconButton(
icon: Icon(Icons.delete),
onPressed: () => _removeTask(index),
),
);
},
),
),
],
),
),
);
}
}
| Hari | Waktu | Materi |
|---|---|---|
| 1 | 09:00-10:30 | Pengenalan Mobile Development |
| 1 | 10:30-12:00 | Penggunaan Flutter dan Dart |
| 1 | 12:00-13:00 | Istirahat |
| 1 | 13:00-14:30 | Desain UI dan UX yang Efektif |
| 1 | 14:30-16:00 | Praktik: Membuat Aplikasi To-Do List |
| 2 | 09:00-10:30 | Manajemen Data dan Penyimpanan |
| 2 | 10:30-12:00 | Pengujian dan Debugging |
| 2 | 12:00-13:00 | Istirahat |
| 2 | 13:00-14:30 | Persiapan Ujian Sertifikasi BNSP |
| 2 | 14:30-16:00 | Simulasi Ujian |