Fix build errors: add basicBlack token, fix const contexts, fix missing import and non-existent token references

This commit is contained in:
Patrick Britton 2026-02-10 15:47:08 -06:00
parent 568a764d37
commit d3feaf98d8
5 changed files with 15 additions and 13 deletions

View file

@ -414,9 +414,9 @@ class _sojornVideoEditorState extends State<sojornVideoEditor> {
// For web or bytes, show placeholder // For web or bytes, show placeholder
if (kIsWeb || widget.videoBytes != null) { if (kIsWeb || widget.videoBytes != null) {
return Scaffold( return Scaffold(
backgroundColor: SojornColors.matteBlack, backgroundColor: _matteBlack,
appBar: AppBar( appBar: AppBar(
backgroundColor: SojornColors.matteBlack, backgroundColor: _matteBlack,
foregroundColor: SojornColors.basicWhite, foregroundColor: SojornColors.basicWhite,
leading: IconButton( leading: IconButton(
tooltip: 'Cancel', tooltip: 'Cancel',
@ -427,7 +427,7 @@ class _sojornVideoEditorState extends State<sojornVideoEditor> {
TextButton( TextButton(
onPressed: _isExporting ? null : _saveWithoutEditing, onPressed: _isExporting ? null : _saveWithoutEditing,
style: TextButton.styleFrom( style: TextButton.styleFrom(
foregroundColor: SojornColors.brightNavy, foregroundColor: _brightNavy,
), ),
child: _isExporting child: _isExporting
? const SizedBox( ? const SizedBox(
@ -450,7 +450,7 @@ class _sojornVideoEditorState extends State<sojornVideoEditor> {
Icon( Icon(
Icons.video_library, Icons.video_library,
size: 64, size: 64,
color: SojornColors.brightNavy, color: _brightNavy,
), ),
const SizedBox(height: 24), const SizedBox(height: 24),
Padding( Padding(
@ -484,7 +484,7 @@ class _sojornVideoEditorState extends State<sojornVideoEditor> {
label: Text( label: Text(
_isExporting ? 'Processing...' : 'Continue with Video'), _isExporting ? 'Processing...' : 'Continue with Video'),
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
backgroundColor: SojornColors.brightNavy, backgroundColor: _brightNavy,
foregroundColor: SojornColors.basicWhite, foregroundColor: SojornColors.basicWhite,
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 32, horizontal: 32,
@ -501,13 +501,13 @@ class _sojornVideoEditorState extends State<sojornVideoEditor> {
// Show loading state // Show loading state
if (_isLoading) { if (_isLoading) {
return Scaffold( return Scaffold(
backgroundColor: SojornColors.matteBlack, backgroundColor: _matteBlack,
body: Center( body: Center(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
CircularProgressIndicator( CircularProgressIndicator(
color: SojornColors.brightNavy, color: _brightNavy,
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
const Text( const Text(
@ -523,7 +523,7 @@ class _sojornVideoEditorState extends State<sojornVideoEditor> {
// Show error state if initialization failed // Show error state if initialization failed
if (!_isInitialized) { if (!_isInitialized) {
return Scaffold( return Scaffold(
backgroundColor: SojornColors.matteBlack, backgroundColor: _matteBlack,
appBar: AppBar( appBar: AppBar(
backgroundColor: _matteBlack, backgroundColor: _matteBlack,
foregroundColor: SojornColors.basicWhite, foregroundColor: SojornColors.basicWhite,

View file

@ -12,6 +12,7 @@ import '../../models/trust_tier.dart';
import '../../providers/api_provider.dart'; import '../../providers/api_provider.dart';
import '../../theme/app_theme.dart'; import '../../theme/app_theme.dart';
import '../../theme/tokens.dart'; import '../../theme/tokens.dart';
import 'package:google_fonts/google_fonts.dart';
import '../../utils/country_flag.dart'; import '../../utils/country_flag.dart';
import '../../utils/url_launcher_helper.dart'; import '../../utils/url_launcher_helper.dart';
import '../../widgets/sojorn_post_card.dart'; import '../../widgets/sojorn_post_card.dart';
@ -1699,11 +1700,11 @@ class _StatItem extends StatelessWidget {
Text( Text(
value, value,
style: AppTheme.headlineSmall.copyWith( style: AppTheme.headlineSmall.copyWith(
color: SojornColors.white, color: SojornColors.basicWhite,
fontSize: 16, fontSize: 16,
shadows: [ shadows: [
Shadow( Shadow(
color: SojornColors.shadow, color: const Color(0x4D000000),
blurRadius: 4, blurRadius: 4,
), ),
], ],
@ -1715,7 +1716,7 @@ class _StatItem extends StatelessWidget {
fontSize: 10, fontSize: 10,
shadows: [ shadows: [
Shadow( Shadow(
color: SojornColors.shadow, color: const Color(0x4D000000),
blurRadius: 2, blurRadius: 2,
), ),
], ],

View file

@ -87,7 +87,7 @@ class _QuipPreviewScreenState extends State<QuipPreviewScreen> {
controller: textController, controller: textController,
autofocus: true, autofocus: true,
style: const TextStyle(color: SojornColors.basicWhite, fontSize: 24), style: const TextStyle(color: SojornColors.basicWhite, fontSize: 24),
decoration: const InputDecoration( decoration: InputDecoration(
border: InputBorder.none, border: InputBorder.none,
hintText: 'Type here...', hintText: 'Type here...',
hintStyle: TextStyle(color: SojornColors.basicWhite.withValues(alpha: 0.54)), hintStyle: TextStyle(color: SojornColors.basicWhite.withValues(alpha: 0.54)),

View file

@ -13,6 +13,7 @@ class SojornColors {
static const Color basicQueenPink = Color(0xFFE5C0DD); static const Color basicQueenPink = Color(0xFFE5C0DD);
static const Color basicQueenPinkLight = Color(0xFFF9F2F7); static const Color basicQueenPinkLight = Color(0xFFF9F2F7);
static const Color basicWhite = Color(0xFFFFFFFF); static const Color basicWhite = Color(0xFFFFFFFF);
static const Color basicBlack = Color(0xFF000000);
// Pop theme palette // Pop theme palette
static const Color popNavyBlue = Color(0xFF000383); static const Color popNavyBlue = Color(0xFF000383);

View file

@ -205,7 +205,7 @@ class _VideoPlayerWithCommentsState extends State<VideoPlayerWithComments> {
child: VideoProgressIndicator( child: VideoProgressIndicator(
_videoController!, _videoController!,
allowScrubbing: true, allowScrubbing: true,
colors: const VideoProgressColors( colors: VideoProgressColors(
playedColor: SojornColors.basicWhite, playedColor: SojornColors.basicWhite,
backgroundColor: SojornColors.basicWhite.withValues(alpha: 0.24), backgroundColor: SojornColors.basicWhite.withValues(alpha: 0.24),
bufferedColor: SojornColors.basicWhite.withValues(alpha: 0.38), bufferedColor: SojornColors.basicWhite.withValues(alpha: 0.38),