You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
justMusic/Sources/justMUSIC/lib/components/join_button.dart

31 lines
981 B

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class JoinButton extends StatelessWidget {
const JoinButton({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return ElevatedButton(
onPressed: () {
Navigator.pushNamed(context, '/register');
},
child: Text(
"Rejoindre",
style: GoogleFonts.plusJakartaSans(
fontWeight: FontWeight.w800, fontSize: 17),
),
style: ButtonStyle(
maximumSize: MaterialStateProperty.all(const Size(800, 50)),
minimumSize: MaterialStateProperty.all(const Size(500, 50)),
backgroundColor: MaterialStateProperty.all(Colors.white),
foregroundColor: MaterialStateProperty.all(Colors.black),
shape: MaterialStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.circular(100),
)),
),
);
}
}