Renamed gradient button to gradient touchable container

This commit is contained in:
Mariano Uvalle 2019-03-20 18:51:22 -06:00
parent 32ca8ac279
commit d97b542238
3 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../resources/authService.dart';
import '../widgets/logo.dart';
import '../widgets/gradient_button.dart';
import '../widgets/gradient_touchable_container.dart';
class LoginScreen extends StatelessWidget {
final _authService = authService;
@ -24,7 +24,7 @@ class LoginScreen extends StatelessWidget {
),
Expanded(
child: Center(
child: GradientButton(
child: GradientTouchableContainer(
onTap: () => onLoginButtonTap(context),
height: 50,
width: 310,

View file

@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
class GradientButton extends StatelessWidget {
class GradientTouchableContainer extends StatelessWidget {
/// The border radius of the button.
final double radius;
@ -16,7 +16,7 @@ class GradientButton extends StatelessWidget {
/// Function to be called when the button is pressed.
final VoidCallback onTap;
GradientButton({
GradientTouchableContainer({
this.radius = 4,
@required this.child,
this.height,

View file