commit
a80de9b72b
13 changed files with 73 additions and 37 deletions
|
|
@ -5321,5 +5321,7 @@
|
|||
"getStartedFriendsButton": "Invite a friend",
|
||||
"contactHasBeenInvitedToTheCourse": "Contact has been invited to the course",
|
||||
"inviteFriends": "Invite friends",
|
||||
"activityStatsButtonTooltip": "Activity info"
|
||||
"activityStatsButtonTooltip": "Activity info",
|
||||
"allow": "Allow",
|
||||
"deny": "Deny"
|
||||
}
|
||||
|
|
@ -51,7 +51,10 @@ class ActivitySuggestionCard extends StatelessWidget {
|
|||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(4.0),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
vertical: 2.0,
|
||||
horizontal: 4.0,
|
||||
),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
|
|
|||
|
|
@ -51,12 +51,12 @@ class PangeaInvitationSelectionView extends StatelessWidget {
|
|||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: theme.colorScheme.primaryContainer,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 24,
|
||||
horizontal: 20,
|
||||
vertical: 16,
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
spacing: 34.0,
|
||||
spacing: 12.0,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
|
|
@ -274,12 +274,12 @@ class PangeaInvitationSelectionView extends StatelessWidget {
|
|||
backgroundColor:
|
||||
theme.colorScheme.primaryContainer,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 24,
|
||||
horizontal: 20,
|
||||
vertical: 16,
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
spacing: 34.0,
|
||||
spacing: 12.0,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class CourseInvitePageController extends State<CourseInvitePage>
|
|||
body: SafeArea(
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(30.0),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 750,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class AddCoursePage extends StatelessWidget {
|
|||
body: SafeArea(
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(30.0),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 350,
|
||||
maxHeight: 600,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class CourseCodePageState extends State<CourseCodePage> {
|
|||
body: SafeArea(
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(30.0),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 350,
|
||||
maxHeight: 600,
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ class LanguageSelectionPageState extends State<LanguageSelectionPage> {
|
|||
body: SafeArea(
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(30.0),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 450,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ class NewCoursePageState extends State<NewCoursePage> {
|
|||
body: SafeArea(
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(30.0),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 450,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ class PublicCoursesPageState extends State<PublicCoursesPage> {
|
|||
body: SafeArea(
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(30.0),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 450,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -61,13 +61,19 @@ class SpaceAnalyticsRequestDialog extends StatelessWidget {
|
|||
),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Row(
|
||||
spacing: 20.0,
|
||||
spacing: 12.0,
|
||||
children: [
|
||||
Expanded(
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20,
|
||||
vertical: 16,
|
||||
),
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
child: Row(
|
||||
spacing: 10.0,
|
||||
spacing: 12.0,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(Icons.close),
|
||||
|
|
@ -78,13 +84,19 @@ class SpaceAnalyticsRequestDialog extends StatelessWidget {
|
|||
),
|
||||
Expanded(
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20,
|
||||
vertical: 16,
|
||||
),
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: Row(
|
||||
spacing: 10.0,
|
||||
spacing: 12.0,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(Symbols.approval_delegation),
|
||||
Text(L10n.of(context).requestAll),
|
||||
Text(L10n.of(context).request),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -71,30 +71,42 @@ class SpaceAnalyticsRequestedDialog extends StatelessWidget {
|
|||
),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Row(
|
||||
spacing: 16.0,
|
||||
spacing: 12.0,
|
||||
children: [
|
||||
Expanded(
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20,
|
||||
vertical: 16,
|
||||
),
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: Row(
|
||||
spacing: 10.0,
|
||||
spacing: 12.0,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(Symbols.approval_delegation),
|
||||
Text(L10n.of(context).allowAccess),
|
||||
Text(L10n.of(context).allow),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20,
|
||||
vertical: 16,
|
||||
),
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: Row(
|
||||
spacing: 10.0,
|
||||
spacing: 12.0,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(Icons.visibility_off),
|
||||
Text(L10n.of(context).denyAccess),
|
||||
Text(L10n.of(context).deny),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -516,24 +516,31 @@ class _RequestButton extends StatelessWidget {
|
|||
child: Opacity(
|
||||
opacity: status.enabled ? 0.9 : 0.3,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: mini ? 4.0 : 8.0,
|
||||
vertical: 4.0,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
color: status.backgroundColor(context),
|
||||
),
|
||||
child: Row(
|
||||
spacing: 8.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
status.icon,
|
||||
size: !mini ? 12.0 : 8.0,
|
||||
),
|
||||
Text(
|
||||
status.label(context),
|
||||
style: TextStyle(fontSize: !mini ? 12.0 : 8.0),
|
||||
),
|
||||
],
|
||||
child: FittedBox(
|
||||
fit: BoxFit.fitWidth,
|
||||
child: Row(
|
||||
spacing: mini ? 2.0 : 8.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (status.icon != null)
|
||||
Icon(
|
||||
status.icon,
|
||||
size: !mini ? 12.0 : 8.0,
|
||||
),
|
||||
Text(
|
||||
status.label(context),
|
||||
style: TextStyle(fontSize: !mini ? 12.0 : 8.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ void showMemberActionsPopupMenu({
|
|||
),
|
||||
const SizedBox(width: 18),
|
||||
Text(
|
||||
L10n.of(context).kickFromChat,
|
||||
L10n.of(context).kick,
|
||||
style: TextStyle(color: theme.colorScheme.onErrorContainer),
|
||||
),
|
||||
],
|
||||
|
|
@ -195,7 +195,7 @@ void showMemberActionsPopupMenu({
|
|||
),
|
||||
const SizedBox(width: 18),
|
||||
Text(
|
||||
L10n.of(context).banFromChat,
|
||||
L10n.of(context).ban,
|
||||
style: TextStyle(color: theme.colorScheme.onErrorContainer),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue