Skip to content

Instantly share code, notes, and snippets.

Avatar
💯
Live Learn Upgrade

vishwesh soni vishweshsoni

💯
Live Learn Upgrade
View GitHub Profile
View sample.json
{
"id" : 1,
"name" : "vishwesh",
"languages" : [ "dart", "java", "js", "python", "c++"],
"mail" : "xyz@gmail.com",
"gender" : "male",
"about" : "SDE"
}
View main.dart
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@vishweshsoni
vishweshsoni / main.dart
Created Jan 27, 2020
Text-Animation in Flutter
View main.dart
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,
View main.dart
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(
View tour.dart
// void main() {
// // print(printInteger(10));
// var cc=log(44.2);
// print(cc.runtimeType);
// }
// printInteger(int number)
// {
// return number;
// }
// dynamic log(dynamic obj){
View covex.dart
//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: [
View concav.dart
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,
View thumbsUp_concav_convex.dart
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(
View HeartScreen.dart
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),
View button_demo.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
You can’t perform that action at this time.