problem koding merah

  • This topic has 7 replies, 2 voices, and was last updated 3 years ago by Anonymous.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #206521
    Moenir
    Participant

      Dear coach boleh dcek merah problemnya dmna yaa

      import ‘package:flutter/material.dart’;

      import ‘./pertanyan.dart’;

      // void main() {
      // runApp(MyApp());
      // }

      void main() => runApp(MyApp());

      class MyApp extends StatefulWidget {
      // const MyApp ({key? key }) : super(key: key);
      @override
      State<MyApp> createState() => _MyAppState();
      }

      class _MyAppState extends State<MyApp> {
      var soalIndex = 0;

      void jawaban() {
      // print(‘tombol sudah ditekan!’);
      setState(() {
      soalIndex += 1;
      });

      print(soalIndex);
      }

      // get jawaban => null;

      @override
      Widget build(BuildContext context) {
      var Pertanyan = [
      ‘Tempat Apa Yang Menurut Anda Menyenangkan?’,
      ‘Apa Warna Kesukaan Anda?’,
      ];

      return MaterialApp(
      home: Scaffold(
      appBar: AppBar(
      title: Text(‘Aplikasi Kuis Moenir’),
      ),
      body: Column(
      children: [
      Pertanyaan(pertanyaan[soalIndex]),
      ElevatedButton(
      //jawaban 1
      onPressed: jawaban,
      child: Text(‘Jawaban1’),
      ),
      ElevatedButton(
      //jawaban 2
      onPressed: jawaban,
      child: Text(‘Jawaban 2’),
      ),
      ElevatedButton(
      // jawaban 3
      onPressed: jawaban,
      child: Text(‘Jawaban 3’),
      ),
      ],
      ),
      ),
      );
      }
      }

      terima kasih
      Moenir

      #207436
      Anonymous

        boleh liat secara screen shot semuanya ?Terima kasih

        #208049
        Moenir
        Participant

          kalau cara screenshoot disini gmna yaa coach

          #208228
          Anonymous

            share by google drive saja ya kalau tidak bisa, bikin public ya.

            #208238
            Moenir
            Participant
              #208299
              Anonymous

                saya sudah minta akses ya, terima kasih ya.

                #223064
                Moenir
                Participant

                  sdh dberi akses coach

                  #223401
                  Anonymous

                    oke noted ya, sebentar saya akan cross check

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.
                  Shopping cart0
                  There are no products in the cart!
                  Continue shopping