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
Widget concaveWithThumb(String txt) { | |
return Container( | |
width: MediaQuery.of(context).size.width / 4, | |
height: MediaQuery.of(context).size.height / 8, | |
child: Center(child: Icon(Icons.thumb_up)), | |
decoration: BoxDecoration( | |
color: Color(0xFFf8fbf8), | |
borderRadius: BorderRadius.all(Radius.circular(30)), | |
boxShadow: [ | |
BoxShadow( |
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
static List<Color> _fill = <Color>[ | |
Colors.grey[200], | |
Color(0xFFf8fbf8), | |
Colors.white | |
]; | |
Widget concav(String txt, Color _clr) { | |
return Container( | |
width: MediaQuery.of(context).size.width / 4, | |
height: MediaQuery.of(context).size.height / 8, |
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
//Creating convex effect | |
Widget convex(String txt) { | |
return Container( | |
width: MediaQuery.of(context).size.width / 4, | |
height: MediaQuery.of(context).size.height / 8, | |
child: Center(child: Icon(Icons.favorite_border)), | |
decoration: BoxDecoration( | |
color: Color(0xFFf8fbf8), | |
borderRadius: BorderRadius.all(Radius.circular(30)), | |
boxShadow: [ |
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
class HeartScreen extends StatefulWidget { | |
@override | |
_HeartScreenState createState() => _HeartScreenState() | |
} | |
class _HeartScreenState extends State<HeartScreen> { | |
bool isPressed = false; | |
static List<Color> _fill = <Color>[ | |
Colors.grey[200], | |
Color(0xFFf8fbf8), |
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
// void main() { | |
// // print(printInteger(10)); | |
// var cc=log(44.2); | |
// print(cc.runtimeType); | |
// } | |
// printInteger(int number) | |
// { | |
// return number; | |
// } | |
// dynamic log(dynamic obj){ |
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(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
title: 'Show up Demo', | |
theme: ThemeData( |
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 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, |
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 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
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
{ | |
"id" : 1, | |
"name" : "vishwesh", | |
"languages" : [ "dart", "java", "js", "python", "c++"], | |
"mail" : "xyz@gmail.com", | |
"gender" : "male", | |
"about" : "SDE" | |
} |