This file contains 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 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 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 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 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 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 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 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 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; | |
public: | |
void getdata(){ | |
cout<<"\n Enter value of x:"<<endl; | |
cin>>x; | |
} | |
void showdata(){ |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style media="screen"> | |
body{ | |
background: #efefef; |