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
| #include<iostream> | |
| using namespace std; | |
| class A{ | |
| int x,y,z; | |
| public: | |
| void add(){ | |
| cout<<"Enter value of x "<<endl; | |
| cin>>x; | |
| cout<<"Enter value of y "<<endl; | |
| cin>>y; |
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:http/http.dart' as http; | |
| import 'dart:convert'; | |
| main(){ | |
| runApp(new AppName()); | |
| } | |
| class AppName extends StatefulWidget{ | |
| @override | |
| State<StatefulWidget> createState() { |
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'; | |
| main()=>runApp(new MaterialApp( | |
| home: new AppHome(), | |
| )); | |
| class AppHome extends StatefulWidget{ | |
| @override | |
| State<AppHome> createState() { | |
| return new AppState(); | |
| } |
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'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); | |
| } | |
| class _MyAppState extends State<MyApp> { |
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'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); | |
| } | |
| class _MyAppState extends State<MyApp> { |
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
| return new Scaffold( | |
| appBar: new AppBar( | |
| title: new Text("Project Details"), | |
| backgroundColor: Colors.blue[800]), | |
| body: | |
| new CustomScrollView( | |
| slivers: <Widget>[ | |
| new SliverPadding(padding: const EdgeInsets.only(left: 10.0,right: 10.0, | |
| top: 10.0,bottom: 0.0), | |
| sliver: new SliverList(delegate: |
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'; | |
| // usage for this route | |
| // Navigator.push(context, AppSlideRoute(builder: (context) => new SecondPage(),),); | |
| class AppSlideRoute<T> extends MaterialPageRoute<T> { | |
| AppSlideRoute({WidgetBuilder builder, RouteSettings settings}) | |
| : super(builder: builder, settings: settings); | |
| @override | |
| Widget buildTransitions(BuildContext context, Animation<double> animation, |
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'; | |
| // usage for this route | |
| // Navigator.push(context, AppTransRoute(builder: (context) => new SecondPage(),),); | |
| class AppTransRoute<T> extends MaterialPageRoute<T> { | |
| AppTransRoute({WidgetBuilder builder, RouteSettings settings}) | |
| : super(builder: builder, settings: settings); | |
| @override | |
| Widget buildTransitions(BuildContext context, Animation<double> animation, |
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'; | |
| // Usage | |
| // Navigator.push(context,AppSlideRightRoute(widget: DetailScreen(),),); | |
| class AppSlideRightRoute extends PageRouteBuilder { | |
| final Widget widget; | |
| AppSlideRightRoute({this.widget}) | |
| : super( | |
| pageBuilder: (BuildContext context, Animation<double> animation, | |
| Animation<double> secondaryAnimation) { |
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'; | |
| // Usage | |
| // Navigator.push(context,AppScaleRoute(widget: DetailScreen(),),); | |
| class AppScaleRoute extends PageRouteBuilder { | |
| final Widget widget; | |
| AppScaleRoute({this.widget}) | |
| : super(pageBuilder: (BuildContext context, Animation<double> animation, | |
| Animation<double> secondaryAnimation) { | |
| return widget; |