Renamed gradient button to gradient touchable container
This commit is contained in:
parent
32ca8ac279
commit
d97b542238
3 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
|
|
||||||
import '../resources/authService.dart';
|
import '../resources/authService.dart';
|
||||||
import '../widgets/logo.dart';
|
import '../widgets/logo.dart';
|
||||||
import '../widgets/gradient_button.dart';
|
import '../widgets/gradient_touchable_container.dart';
|
||||||
|
|
||||||
class LoginScreen extends StatelessWidget {
|
class LoginScreen extends StatelessWidget {
|
||||||
final _authService = authService;
|
final _authService = authService;
|
||||||
|
|
@ -24,7 +24,7 @@ class LoginScreen extends StatelessWidget {
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: GradientButton(
|
child: GradientTouchableContainer(
|
||||||
onTap: () => onLoginButtonTap(context),
|
onTap: () => onLoginButtonTap(context),
|
||||||
height: 50,
|
height: 50,
|
||||||
width: 310,
|
width: 310,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class GradientButton extends StatelessWidget {
|
class GradientTouchableContainer extends StatelessWidget {
|
||||||
/// The border radius of the button.
|
/// The border radius of the button.
|
||||||
final double radius;
|
final double radius;
|
||||||
|
|
||||||
|
|
@ -16,7 +16,7 @@ class GradientButton extends StatelessWidget {
|
||||||
/// Function to be called when the button is pressed.
|
/// Function to be called when the button is pressed.
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
|
|
||||||
GradientButton({
|
GradientTouchableContainer({
|
||||||
this.radius = 4,
|
this.radius = 4,
|
||||||
@required this.child,
|
@required this.child,
|
||||||
this.height,
|
this.height,
|
||||||
0
lib/src/widgets/home_app_bar.dart
Normal file
0
lib/src/widgets/home_app_bar.dart
Normal file
Loading…
Add table
Add a link
Reference in a new issue