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:flutter/services.dart'; | |
import 'package:razorpay_flutter/razorpay_flutter.dart'; | |
import 'package:fluttertoast/fluttertoast.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatefulWidget { |
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'; | |
class MyPage1 extends StatefulWidget { | |
MyPage1({Key key}) : super(key: key); | |
@override | |
My_Page1State createState() => My_Page1State(); | |
} | |
class My_Page1State extends State<MyPage1> { |
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, | |
home: MyPage(), |
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'; | |
int quantity = 1; | |
double total = 30.25; | |
class InfoPage extends StatefulWidget { | |
@override | |
_InforPageState createState() => _InforPageState(); | |
} |
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:gradient_text/gradient_text.dart'; | |
class ServicePage extends StatefulWidget { | |
@override | |
_ServicePageState createState() => _ServicePageState(); | |
} | |
final List<String> imagesrc = [ | |
"assets/servicing_cardimage.jpg", |
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:gradient_text/gradient_text.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
GradientText( | |
"Hello", | |
gradient: LinearGradient(colors: [ | |
Color(0xFFFF1000), | |
Color(0xFF2508FF), | |
]), | |
style: TextStyle(fontSize: 55, fontWeight: FontWeight.normal), | |
), |
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
AnimatedContainer( | |
duration: Duration(seconds: 1), | |
curve: Curves.fastOutSlowIn, | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(15), | |
color: Colors.green), | |
width: (animationValue) * animationValue, | |
height: 50, | |
child: Center( | |
child: Text( |
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
Container( | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(10), | |
color: Colors.blue), | |
child: FlatButton( | |
onPressed: () { | |
setState(() { | |
pressed = true; | |
animationValue = animationValue + 10; | |
}); |
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:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |