-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathmain
More file actions
86 lines (79 loc) · 2.43 KB
/
main
File metadata and controls
86 lines (79 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import 'dart:js';
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:splash/second.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.lightBlue,
body: Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CircleAvatar(
radius: 60.0,
backgroundColor: Colors.red,
),
Text(
"Shubham BIswas",
style: TextStyle(
fontFamily: 'dancing',
fontSize: 40.0,
color: Colors.white,
),
),
Text(
"App Devolper",
style: TextStyle(
fontFamily: 'Pacifico',
fontSize: 10.0,
fontWeight: FontWeight.bold,
letterSpacing: 2.0,
color: Colors.white,
),
),
Card(
color: Colors.white,
child: ListTile(
leading: Icon(Icons.phone),
title: Text("8170960353"),
),
),
Card(
color: Colors.white,
child: ListTile(
leading: Icon(Icons.email),
title: Text("shubhambiswas024@gmail.com"),
),
),
FlatButton(
color: Colors.blue,
textColor: Colors.white,
disabledColor: Colors.grey,
disabledTextColor: Colors.black,
padding: EdgeInsets.all(8.0),
splashColor: Colors.blueAccent,
onPressed: () ,
child: Text(
"Flat Button",
style: TextStyle(fontSize: 20.0),
),
)
],
),
),
),
);
}
}
void onPressed () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => Second()),
);
}