Skip to content

Instantly share code, notes, and snippets.

@ptyagicodecamp
Created June 11, 2019 20:10
Show Gist options
  • Save ptyagicodecamp/d0f3c0af80dd40b1f0e0b41045dbf06d to your computer and use it in GitHub Desktop.
Save ptyagicodecamp/d0f3c0af80dd40b1f0e0b41045dbf06d to your computer and use it in GitHub Desktop.
import 'package:flutter_web/material.dart';
import 'package:landingpage/utils/myColors.dart';
import 'package:landingpage/utils/strings.dart';
class SubscribeButton extends StatelessWidget {
var emailImage = "assets/email.png";
@override
Widget build(BuildContext context) {
return InkWell(
child: Container(
height: 40,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [MyColors.blue1, MyColors.blue2],
begin: Alignment.bottomRight,
end: Alignment.topLeft),
borderRadius: BorderRadius.circular(20.0),
boxShadow: [
BoxShadow(
color: MyColors.blue3.withOpacity(.3),
offset: Offset(0, 8),
blurRadius: 8.0)
]),
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: () {}, //TODO
child: Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
Strings.subscribeButton,
style: TextStyle(
color: MyColors.white1, fontSize: 16, letterSpacing: 1),
),
SizedBox(
width: 8,
),
Image.network(
emailImage,
color: MyColors.white1,
width: 20,
height: 20,
)
],
),
),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment