[READ ONLY MIRROR] Open Source TikTok alternative built on AT Protocol github.com/sprksocial/client
flutter atproto video dart
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix text color on auth screen on dark mode (#35)

authored by

Davi Rodrigues and committed by
GitHub
c08dc861 db458e3b

+38 -66
+3 -7
lib/screens/import_follows_screen.dart
··· 153 153 textAlign: TextAlign.center, 154 154 style: TextStyle(fontSize: 16), 155 155 ), 156 - const SizedBox(height: 4), 157 - TextButton( 158 - onPressed: () {}, 159 - style: TextButton.styleFrom(foregroundColor: AppColors.pink), 160 - child: const Text('How it works'), 161 - ), 162 156 const SizedBox(height: 16), 163 157 TextField( 164 158 controller: _searchController, ··· 190 184 return ListTile( 191 185 leading: CircleAvatar(backgroundImage: CachedNetworkImageProvider(did.avatar ?? '')), 192 186 title: Text(did.displayName ?? ''), 193 - subtitle: Text(did.handle), 187 + subtitle: Text(did.handle, style: TextStyle(color: AppColors.hintText)), 194 188 trailing: OutlinedButton( 195 189 onPressed: isFollowed ? null : () => _follow(did.did), 196 190 style: OutlinedButton.styleFrom( 197 191 side: BorderSide(color: AppColors.pink), 198 192 foregroundColor: AppColors.pink, 193 + disabledForegroundColor: AppColors.pink.withValues(alpha: 0.5), 194 + disabledBackgroundColor: AppColors.pink.withValues(alpha: 0.05), 199 195 ), 200 196 child: Text(isFollowed ? 'Following' : 'Follow'), 201 197 ),
+14 -23
lib/screens/login_screen.dart
··· 91 91 backgroundColor: AppTheme.getBackgroundColor(context), 92 92 body: Stack( 93 93 children: [ 94 - Positioned.fill( 95 - child: Image.asset( 96 - 'assets/branding/gradient.webp', 97 - fit: BoxFit.cover, 98 - ), 99 - ), 94 + Positioned.fill(child: Image.asset('assets/branding/gradient.webp', fit: BoxFit.cover)), 100 95 SafeArea( 101 96 child: Center( 102 97 child: SingleChildScrollView( ··· 128 123 children: [ 129 124 Text( 130 125 'Login using your existing ', 131 - style: TextStyle( 132 - color: AppColors.white, 133 - fontSize: 20, 134 - height: 1.7, 135 - ), 136 - ), 137 - SvgPicture.asset( 138 - 'assets/images/ataccount.svg', 139 - height: 25, 140 - width: 100, 126 + style: TextStyle(color: AppColors.white, fontSize: 20, height: 1.7), 141 127 ), 128 + SvgPicture.asset('assets/images/ataccount.svg', height: 25, width: 100), 142 129 const SizedBox(width: 4), 143 130 const ATAccountInfoIcon(), 144 131 ], ··· 218 205 prefixIcon: const Icon(FluentIcons.key_24_regular, color: AppColors.white), 219 206 filled: true, 220 207 fillColor: AppColors.white.withAlpha(100), 221 - border: OutlineInputBorder(borderRadius: BorderRadius.circular(16), borderSide: BorderSide.none), 208 + border: OutlineInputBorder( 209 + borderRadius: BorderRadius.circular(16), 210 + borderSide: BorderSide.none, 211 + ), 222 212 contentPadding: const EdgeInsets.all(16), 223 213 ), 224 214 style: const TextStyle(color: Colors.black), ··· 259 249 minimumSize: const Size(320, 60), 260 250 disabledBackgroundColor: AppColors.primary.withAlpha(128), 261 251 ), 262 - child: authService.isLoading 263 - ? const CircularProgressIndicator(color: AppColors.white) 264 - : Text( 265 - _showAuthCodeField ? 'Verify Code' : 'Login', 266 - style: const TextStyle(fontSize: 20, fontWeight: FontWeight.normal, color: AppColors.white), 267 - ), 252 + child: 253 + authService.isLoading 254 + ? const CircularProgressIndicator(color: AppColors.white) 255 + : Text( 256 + _showAuthCodeField ? 'Verify Code' : 'Login', 257 + style: const TextStyle(fontSize: 20, fontWeight: FontWeight.normal, color: AppColors.white), 258 + ), 268 259 ), 269 260 ], 270 261 ),
+21 -36
lib/screens/register_screen.dart
··· 85 85 backgroundColor: AppTheme.getBackgroundColor(context), 86 86 body: Stack( 87 87 children: [ 88 - Positioned.fill( 89 - child: Image.asset( 90 - 'assets/branding/gradient.webp', 91 - fit: BoxFit.cover, 92 - ), 93 - ), 88 + Positioned.fill(child: Image.asset('assets/branding/gradient.webp', fit: BoxFit.cover)), 94 89 SafeArea( 95 90 child: GestureDetector( 96 91 onTap: () => FocusScope.of(context).unfocus(), ··· 100 95 child: Column( 101 96 crossAxisAlignment: CrossAxisAlignment.start, 102 97 children: [ 103 - 104 - Center( 105 - child: SvgPicture.asset( 106 - 'assets/images/logo_dark_mode.svg', 107 - height: 140, 108 - width: 140, 109 - ), 110 - ), 98 + Center(child: SvgPicture.asset('assets/images/logo_dark_mode.svg', height: 140, width: 140)), 111 99 const SizedBox(height: 21), 112 100 Center( 113 101 child: Text( ··· 124 112 alignment: WrapAlignment.center, 125 113 crossAxisAlignment: WrapCrossAlignment.center, 126 114 children: [ 127 - Text( 128 - 'Create your new ', 129 - style: TextStyle( 130 - color: AppColors.white, 131 - fontSize: 20, 132 - height: 1.7, 133 - ), 134 - ), 135 - SvgPicture.asset( 136 - 'assets/images/ataccount.svg', 137 - height: 25, 138 - width: 100, 139 - ), 115 + Text('Create your new ', style: TextStyle(color: AppColors.white, fontSize: 20, height: 1.7)), 116 + SvgPicture.asset('assets/images/ataccount.svg', height: 25, width: 100), 140 117 const SizedBox(width: 4), 141 118 const ATAccountInfoIcon(), 142 119 ], 143 120 ), 144 121 ), 145 122 ), 146 - 123 + 147 124 const SizedBox(height: 30), 148 125 149 126 if (AppConfig.signupsDisabled) ...[ 150 127 Container( 151 128 padding: const EdgeInsets.all(16), 152 - decoration: BoxDecoration(color: AppColors.error.withAlpha(26), borderRadius: BorderRadius.circular(12)), 129 + decoration: BoxDecoration( 130 + color: AppColors.error.withAlpha(26), 131 + borderRadius: BorderRadius.circular(12), 132 + ), 153 133 child: Row( 154 134 children: [ 155 135 const Icon(FluentIcons.warning_24_regular, color: AppColors.error), ··· 188 168 _buildLabel('Username'), 189 169 const SizedBox(height: 8), 190 170 Container( 191 - decoration: BoxDecoration( 192 - color: AppColors.white.withAlpha(255), 193 - borderRadius: BorderRadius.circular(16), 194 - ), 171 + decoration: BoxDecoration(color: AppColors.white.withAlpha(255), borderRadius: BorderRadius.circular(16)), 195 172 child: Row( 196 173 children: [ 197 174 const Padding( ··· 215 192 ), 216 193 Padding( 217 194 padding: const EdgeInsets.only(right: 16), 218 - child: Text('.sprk.so', style: TextStyle(fontSize: 16, color: isDarkMode ? AppColors.white.withAlpha(100) : AppTheme.getSecondaryTextColor(context))), 195 + child: Text( 196 + '.sprk.so', 197 + style: TextStyle( 198 + fontSize: 16, 199 + color: isDarkMode ? AppColors.textPrimary : AppTheme.getSecondaryTextColor(context), 200 + ), 201 + ), 219 202 ), 220 203 ], 221 204 ), ··· 269 252 // ), 270 253 // style: const TextStyle(color: Colors.black), 271 254 // ), 272 - 273 255 if (_errorMessage != null) ...[ 274 256 const SizedBox(height: 24), 275 257 Container( 276 258 padding: const EdgeInsets.all(16), 277 - decoration: BoxDecoration(color: AppColors.error.withAlpha(26), borderRadius: BorderRadius.circular(12)), 259 + decoration: BoxDecoration( 260 + color: AppColors.error.withAlpha(26), 261 + borderRadius: BorderRadius.circular(12), 262 + ), 278 263 child: Row( 279 264 children: [ 280 265 const Icon(FluentIcons.warning_24_regular, color: AppColors.error),