This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_ui_lesson/screens/second_screen.dart'; | |
| class FirstScreen extends StatelessWidget { | |
| FirstScreen({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return DefaultTabController( | |
| length: 2, | |
| child: Scaffold( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_ui_lesson/screens/first_screen.dart'; | |
| import 'package:flutter_ui_lesson/screens/second_screen.dart'; | |
| import 'package:flutter_ui_lesson/screens/third_screen.dart'; | |
| class MainScreen extends StatefulWidget { | |
| const MainScreen({Key? key}) : super(key: key); | |
| @override | |
| State<MainScreen> createState() => _MainScreenState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Navigator.push(context, | |
| MaterialPageRoute(builder: (context) => const SecondScreen(data: 'This is from first screen',))); | |
| Navigator.pop(context,' Second screen data'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_ui_lesson/screens/first_screen.dart'; | |
| class ThirdScreen extends StatelessWidget { | |
| const ThirdScreen({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar(title: const Text('Third Screen'),), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_ui_lesson/screens/third_screen.dart'; | |
| class SecondScreen extends StatelessWidget { | |
| const SecondScreen({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar(title: const Text('Second Screen'),), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_ui_lesson/screens/second_screen.dart'; | |
| class FirstScreen extends StatelessWidget { | |
| const FirstScreen({Key? key}) : super(key: key); | |
| // | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //debug release profile | |
| //assets file binary network | |
| //container | |
| // Material , Cupertino | |
| //Stateless .Stateful | |
| //row column wrap container stack | |
| //listview gridview | |
| import 'package:flutter/material.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //debug release profile | |
| //assets file binary network | |
| //container | |
| // Material , Cupertino | |
| //Stateless .Stateful | |
| //row column wrap container stack | |
| //listview gridview | |
| import 'package:flutter/material.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //debug release profile | |
| //assets file binary network | |
| //container | |
| // Material , Cupertino | |
| //Stateless .Stateful | |
| //row column wrap container stack | |
| //listview gridview | |
| import 'package:flutter/material.dart'; |