Flutter Navigate to Another Activity | flutter button click next page | Routes in Flutter | #5

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

ความคิดเห็น • 34

  • @programmingguruThecoderboy
    @programmingguruThecoderboy  2 ปีที่แล้ว +3

    Ha guys please like subscribe and comment
    Please do support and share my videos
    Thank you ❤️❤️❤️❤️

  • @abbaskhan7760
    @abbaskhan7760 2 ปีที่แล้ว +1

    Brilliant flutter Navigation between screen tutorial keep it up

  • @ashakurmohed
    @ashakurmohed 9 หลายเดือนก่อน +1

    Thank you for this video it helps

  • @lonefist1890
    @lonefist1890 ปีที่แล้ว +1

    Simple and informative ,good job brother , thank you .

  • @Speedcode5x
    @Speedcode5x 2 ปีที่แล้ว +1

    Great flutter Navigation Drawer tutorial

  • @hindimedium1590
    @hindimedium1590 2 ปีที่แล้ว +1

    great flutter navigation tutorial

  • @backofficecyberclouds2050
    @backofficecyberclouds2050 2 ปีที่แล้ว +1

    Awesome flutter navigation tutorial

  • @topanalysis7267
    @topanalysis7267 2 ปีที่แล้ว +1

    Great work keep sharing

  • @technicaluz
    @technicaluz 2 ปีที่แล้ว +1

    very well explianed tutorial keep it up

  • @relaxationmeditation8021
    @relaxationmeditation8021 2 ปีที่แล้ว

    Brilliant flutter navigation tutorial keep it up

  • @AziziAli-t1j
    @AziziAli-t1j ปีที่แล้ว +1

    Mashallah bro

  • @IdrisAzim
    @IdrisAzim 4 หลายเดือนก่อน

    Thanks a lot!

  • @codewithmik
    @codewithmik 2 ปีที่แล้ว +1

    very useful flutter navigation tutorial

  • @himanshubisht1226
    @himanshubisht1226 2 ปีที่แล้ว +1

    hello how can we make a next button under the tabs of tab bar view?

  • @messiisthebest
    @messiisthebest 2 ปีที่แล้ว +1

    but bro my screen are overlapping without pressing the button

    • @programmingguruThecoderboy
      @programmingguruThecoderboy  2 ปีที่แล้ว

      You navigate to another activity outside button pressed

    • @messiisthebest
      @messiisthebest 2 ปีที่แล้ว

      @@programmingguruThecoderboy but i have set the navigation on onpressed only

    • @programmingguruThecoderboy
      @programmingguruThecoderboy  2 ปีที่แล้ว

      @@messiisthebest Can you paste the code here

    • @messiisthebest
      @messiisthebest 2 ปีที่แล้ว

      @@programmingguruThecoderboy
      import 'package:flutter/material.dart';
      import './home.dart';
      class Question extends StatelessWidget {
      Question({super.key});
      TextEditingController durationController = TextEditingController();
      TextEditingController lengthController = TextEditingController();
      @override
      Widget build(BuildContext context) {
      return Container(
      margin: const EdgeInsets.only(top: 80),
      child: Column(
      children: [
      Container(
      margin: const EdgeInsets.only(top: 30, right: 180),
      child: const Text("enter the period duration",
      style: TextStyle(fontSize: 18)),
      ),
      Card(
      child: TextField(
      decoration: const InputDecoration(
      labelText: "period duration",
      ),
      controller: durationController,
      keyboardType: TextInputType.number,
      )),
      Container(
      margin: const EdgeInsets.only(top: 30, right: 180),
      child: const Text("enter the period length",
      style: TextStyle(fontSize: 18)),
      ),
      Card(
      child: TextField(
      decoration: const InputDecoration(
      labelText: "period length",
      ),
      controller: lengthController,
      keyboardType: TextInputType.number,
      )),
      OutlinedButton(
      onPressed: () {
      //ClearSession();
      if (Navigator.canPop(context)) {
      Navigator.pop(context, true);
      }
      Navigator.pushReplacement(context,
      MaterialPageRoute(builder: (context) => const Home()));
      },
      child: const Text("Submit"),
      ),
      ],
      ),
      );
      }
      }
      and the home class is
      import 'package:flutter/material.dart';
      class Home extends StatefulWidget {
      const Home({super.key});
      @override
      State createState() => _HomeState();
      }
      class _HomeState extends State {
      @override
      Widget build(BuildContext context) {
      return Container(
      child: Column(
      children: [
      Row(
      children: [
      Container(child: Icon(Icons.home)),
      Container(child: Icon(Icons.calendar_month)),
      Container(
      child: Text(" home button"),
      )
      ],
      )
      ],
      ),
      );
      }
      }
      and you can see output image in this link
      www.dropbox.com/s/kylus6e3gidovmy/Screenshot%202022-11-11%20094226.png?dl=0

    • @messiisthebest
      @messiisthebest 2 ปีที่แล้ว

      thank you for the concern, but the problem was solved, it was my fault, I call the same home widget in the main. dart file, sorry for consuming your valuable time