Skip to content

Commit

Permalink
ui done
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKetan2 committed Jun 5, 2020
1 parent a328251 commit e485b95
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"request": "launch",
"type": "dart"
}
]
}
Binary file modified assets/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 37 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: ' China Apps',
title: 'Delete China Apps',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
home: MyHomePage(title: 'Delete China Apps'),
);
}
}
Expand All @@ -29,7 +29,7 @@ class MyHomePage extends StatefulWidget {
}

class _MyHomePageState extends State<MyHomePage> {
bool _isSearched = false;
bool _isAwesome = true;

@override
Widget build(BuildContext context) {
Expand All @@ -50,13 +50,39 @@ class _MyHomePageState extends State<MyHomePage> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Expanded(
child: Container(
child: _isAwesome
? Image.asset(
"assets/success.png",
height: 150,
width: 150,
)
: Image.asset(
"assets/dragon.png",
height: 150,
width: 150,
),
),
),
Expanded(
child: Container(
child: Image.asset(
"assets/dragon.png",
child: ListView.builder(
itemBuilder: (context, index) {
return ListTile(
leading: Icon(Icons.ac_unit),
title: Text("HI"),
trailing: IconButton(
icon: Icon(
Icons.delete,
color: Colors.red,
),
),
);
},
itemCount: 10,
),
)),
Expanded(child: Container()),
RaisedButton(
padding: EdgeInsets.symmetric(
horizontal: 100,
Expand All @@ -69,7 +95,11 @@ class _MyHomePageState extends State<MyHomePage> {
),
),
color: Color(0xff2da8bb),
onPressed: () {},
onPressed: () {
setState(() {
_isAwesome = !_isAwesome;
});
},
),
SizedBox(
height: 10,
Expand Down

0 comments on commit e485b95

Please sign in to comment.