• Telefondagi rasmi
  • *Namuna Card ilovasi 1 ta oynasi(User interfeysi-ui)ni Flutterda tayyorlash* main dart




    Download 69,52 Kb.
    Sana21.05.2024
    Hajmi69,52 Kb.
    #248593
    Bog'liq
    1-Mustaqil ish(KIS-20-01) (5)



    *Namuna
    Card ilovasi 1 ta oynasi(User interfeysi-UI)ni Flutterda tayyorlash*
    main.dart faylidagi kodi
    import 'package:flutter/material.dart';
    import 'package:ilova/second_page.dart';

    class MainPage extends StatefulWidget {


    static const String id = 'main_page';
    const MainPage({super.key});

    @override


    State createState() => _MainPageState();
    }

    class _MainPageState extends State {


    @override
    Widget build(BuildContext context) {
    var screenHeight = MediaQuery.of(context).size.height;
    var screenWidth = MediaQuery.of(context).size.width;
    return Scaffold(
    backgroundColor: Colors.lightGreenAccent,
    body: Center(
    child: Column(
    children: [
    SizedBox(height: screenHeight / 20,),
    ElevatedButton(
    onPressed: () {
    Navigator.pushReplacementNamed(context, HomePage.id);
    },
    child: Text('Asosiy sahifa'),
    ),
    ElevatedButton(
    onPressed: () {
    Navigator.pop(context);
    },
    child: Text('Oldingi sahifa'),
    )
    ],
    ),
    ),
    );
    }
    }


    Telefondagi rasmi



    Download 69,52 Kb.




    Download 69,52 Kb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    *Namuna Card ilovasi 1 ta oynasi(User interfeysi-ui)ni Flutterda tayyorlash* main dart

    Download 69,52 Kb.