TextBold
parent
0eeba51d46
commit
661bdc2454
|
@ -1,3 +1,4 @@
|
|||
import 'package:cofounderella/components/text_bold.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../constants.dart';
|
||||
|
@ -25,13 +26,7 @@ class MyAboutDialog extends StatelessWidget {
|
|||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
Constants.appTitle,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TextBold(text: Constants.appTitle, fontSize: 24),
|
||||
Text(
|
||||
'Version ${Constants.appVersion} (${Constants.appCompilationDate})'),
|
||||
],
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Text in bold.
|
||||
///
|
||||
/// Unless specified otherwise, the default settings will be
|
||||
/// fontSize: [18] and fontWeight: [FontWeight.bold].
|
||||
class TextBold extends StatelessWidget {
|
||||
final String text;
|
||||
final double? fontSize;
|
||||
final FontWeight? fontWeight;
|
||||
final TextAlign? textAlign;
|
||||
|
||||
const TextBold({
|
||||
super.key,
|
||||
required this.text,
|
||||
this.fontSize = 18,
|
||||
this.fontWeight = FontWeight.bold,
|
||||
this.textAlign,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(
|
||||
text,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: fontSize,
|
||||
),
|
||||
textAlign: textAlign,
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../components/text_bold.dart';
|
||||
import '../constants.dart';
|
||||
import '../enumerations.dart';
|
||||
import '../forms/risks_form.dart';
|
||||
|
@ -156,10 +157,7 @@ class CultureValuesFormPageState extends State<CultureValuesFormPage> {
|
|||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
const Text(
|
||||
'Work life and corporate culture',
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const TextBold(text: 'Work life and corporate culture'),
|
||||
const Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text('Which corporate culture suits you best?'),
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import '../components/text_bold.dart';
|
||||
import '../utils/helper.dart';
|
||||
|
||||
class ProfileCategoryForm<T> extends StatefulWidget {
|
||||
|
@ -52,13 +53,7 @@ class ProfileCategoryFormState<T> extends State<ProfileCategoryForm<T>> {
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Text(
|
||||
widget.header,
|
||||
style: const TextStyle(
|
||||
fontSize: 18.0,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TextBold(text: widget.header),
|
||||
const SizedBox(height: 16),
|
||||
Text(widget.description),
|
||||
const SizedBox(height: 16),
|
||||
|
|
|
@ -300,7 +300,7 @@ class LikedUsersPageState extends State<LikedUsersPage> {
|
|||
: _fetchError != null
|
||||
? Center(child: Text('Error: $_fetchError'))
|
||||
: _likedUsersWithSwipes.isEmpty
|
||||
? const Center(child: Text('No liked users found.'))
|
||||
? const Center(child: Text('No favored profiles yet.'))
|
||||
: buildLikedUserList(),
|
||||
],
|
||||
),
|
||||
|
@ -323,7 +323,7 @@ class LikedUsersPageState extends State<LikedUsersPage> {
|
|||
return UserTileLikes(
|
||||
user: user,
|
||||
hasMatch: hasMatch,
|
||||
currentUser: _currentUser!,
|
||||
currentUser: _currentUser,
|
||||
onUnlike: () async {
|
||||
Map<String, dynamic> userMap =
|
||||
user.data() as Map<String, dynamic>;
|
||||
|
|
|
@ -21,7 +21,6 @@ class RegisterPage extends StatelessWidget {
|
|||
|
||||
// register method
|
||||
Future<void> register(BuildContext context) async {
|
||||
// get auth service
|
||||
final auth = AuthService();
|
||||
|
||||
// check if passwords match
|
||||
|
@ -56,8 +55,11 @@ class RegisterPage extends StatelessWidget {
|
|||
return Scaffold(
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
body: Center(
|
||||
child: ListView(children: [
|
||||
Column(mainAxisAlignment: MainAxisAlignment.center, children: [
|
||||
child: ListView(
|
||||
children: [
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
// logo
|
||||
Icon(
|
||||
Icons.people_alt,
|
||||
|
@ -142,8 +144,9 @@ class RegisterPage extends StatelessWidget {
|
|||
children: [
|
||||
Text(
|
||||
'Already have an account? ',
|
||||
style:
|
||||
TextStyle(color: Theme.of(context).colorScheme.primary),
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap: onTap,
|
||||
|
@ -156,8 +159,10 @@ class RegisterPage extends StatelessWidget {
|
|||
),
|
||||
],
|
||||
)
|
||||
]),
|
||||
]),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:cofounderella/components/text_bold.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../services/auth/auth_gate.dart';
|
||||
|
||||
|
@ -24,9 +25,9 @@ class RegistrationCompletePage extends StatelessWidget {
|
|||
size: 100,
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const Text(
|
||||
'Registration completed!',
|
||||
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
||||
const TextBold(
|
||||
text: 'Registration completed!',
|
||||
fontSize: 24,
|
||||
),
|
||||
const SizedBox(height: 40),
|
||||
const Text(
|
||||
|
|
|
@ -6,6 +6,7 @@ import 'package:flutter_svg/flutter_svg.dart';
|
|||
|
||||
import '../components/location_dialog.dart';
|
||||
import '../components/my_button.dart';
|
||||
import '../components/text_bold.dart';
|
||||
import '../components/text_with_bold.dart';
|
||||
import '../constants.dart';
|
||||
import '../enumerations.dart';
|
||||
|
@ -395,18 +396,15 @@ class _UserDataPageState extends State<UserDataPage> {
|
|||
children: [
|
||||
if (widget.isRegProcess) ...[
|
||||
const SizedBox(height: 10),
|
||||
const Text(
|
||||
const TextBold(
|
||||
text:
|
||||
'Please fill in the following fields to proceed with the registration process.',
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const Divider(),
|
||||
],
|
||||
const SizedBox(height: 10),
|
||||
const Text(
|
||||
'Location',
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const TextBold(text: 'Location'),
|
||||
const SizedBox(height: 20),
|
||||
// Display selected main location
|
||||
const Text(
|
||||
|
@ -483,10 +481,7 @@ class _UserDataPageState extends State<UserDataPage> {
|
|||
],
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const Text(
|
||||
'Age',
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const TextBold(text: 'Age'),
|
||||
Row(
|
||||
children: [
|
||||
const Padding(padding: EdgeInsets.symmetric(horizontal: 8)),
|
||||
|
@ -512,13 +507,7 @@ class _UserDataPageState extends State<UserDataPage> {
|
|||
],
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const Text(
|
||||
'Gender',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
const TextBold(text: 'Gender'),
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: SegmentedButton<Gender>(
|
||||
|
@ -550,10 +539,8 @@ class _UserDataPageState extends State<UserDataPage> {
|
|||
),
|
||||
const SizedBox(height: 20),
|
||||
const Divider(),
|
||||
Text(
|
||||
'Language: (${_selectedLanguages.length} selected)',
|
||||
style:
|
||||
const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
TextBold(
|
||||
text: 'Language: (${_selectedLanguages.length} selected)',
|
||||
),
|
||||
...languagesList.map(buildSingleCheckbox),
|
||||
const Divider(),
|
||||
|
|
|
@ -6,6 +6,7 @@ import 'package:swipable_stack/swipable_stack.dart';
|
|||
|
||||
import '../components/card_overlay.dart';
|
||||
import '../components/language_list.dart';
|
||||
import '../components/text_bold.dart';
|
||||
import '../components/text_with_bold.dart';
|
||||
import '../constants.dart';
|
||||
import '../forms/matched_screen.dart';
|
||||
|
@ -258,25 +259,17 @@ class UserMatchingPageState extends State<UserMatchingPage> {
|
|||
if (userProfiles.isEmpty) ...[
|
||||
const CircularProgressIndicator(),
|
||||
const SizedBox(height: 20),
|
||||
const Text(
|
||||
'Loading data, please wait...',
|
||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
|
||||
),
|
||||
const TextBold(text: 'Loading data, please wait...'),
|
||||
] else ...[
|
||||
Text(
|
||||
userProfiles.length > 1
|
||||
TextBold(
|
||||
text: userProfiles.length > 1
|
||||
? 'No new profiles available yet.'
|
||||
: 'No profiles available at the moment.',
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 60),
|
||||
const Text(
|
||||
'Please check back later, perhaps tomorrow.',
|
||||
const TextBold(
|
||||
text: 'Please check back later, perhaps tomorrow.',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
|
||||
),
|
||||
],
|
||||
],
|
||||
|
@ -393,13 +386,10 @@ class UserMatchingPageState extends State<UserMatchingPage> {
|
|||
lineWidth: 5.0,
|
||||
animation: true,
|
||||
percent: matchScore / 100,
|
||||
header: Text(
|
||||
"${matchScore.toStringAsFixed(2)}%",
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
header: TextBold(
|
||||
text: "${matchScore.toStringAsFixed(2)}%",
|
||||
fontSize: 16.0,
|
||||
),
|
||||
),
|
||||
circularStrokeCap: CircularStrokeCap.round,
|
||||
progressColor: _getProgressColor(matchScore),
|
||||
backgroundWidth: 2,
|
||||
|
@ -483,16 +473,17 @@ class UserMatchingPageState extends State<UserMatchingPage> {
|
|||
children: [
|
||||
const Icon(Icons.person_search, size: 64),
|
||||
const SizedBox(height: 20),
|
||||
const Text(
|
||||
'You\'ve viewed all available profiles.',
|
||||
const TextBold(
|
||||
text: 'You\'ve viewed all available profiles.',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
||||
fontSize: 24,
|
||||
),
|
||||
const SizedBox(height: 60),
|
||||
const Text(
|
||||
'Would you like to do another run and see the remaining profiles again?',
|
||||
const TextBold(
|
||||
text: 'Would you like to do another run '
|
||||
'and see the remaining profiles again?',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
||||
fontSize: 24,
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
ElevatedButton(
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../components/text_bold.dart';
|
||||
import '../constants.dart';
|
||||
import '../enumerations.dart';
|
||||
import '../forms/corporate_culture_form.dart';
|
||||
|
@ -155,10 +156,7 @@ class UserVisionPageState extends State<UserVisionPage> {
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'Availability and commitment',
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const TextBold(text: 'Availability and commitment'),
|
||||
const Text(
|
||||
'How much time can you devote to the startup each week?',
|
||||
),
|
||||
|
@ -175,10 +173,7 @@ class UserVisionPageState extends State<UserVisionPage> {
|
|||
);
|
||||
}),
|
||||
const SizedBox(height: 40),
|
||||
const Text(
|
||||
'Vision and goals',
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const TextBold(text: 'Vision and goals'),
|
||||
const Text('What is your long-term vision for a startup?'),
|
||||
...VisionOption.values.map((option) {
|
||||
return CheckboxListTile(
|
||||
|
|
Loading…
Reference in New Issue