location has been enabled in addition to sending the domain
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import '../blocs/theme/theme_cubit.dart';
|
||||
import '../blocs/theme/theme_state.dart';
|
||||
|
||||
class SettingsBar extends StatelessWidget {
|
||||
final int selectedIndex;
|
||||
@@ -25,15 +28,28 @@ class SettingsBar extends StatelessWidget {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
// Text Logo
|
||||
const Text(
|
||||
'LOGO',
|
||||
style: TextStyle(
|
||||
fontSize: 28,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
letterSpacing: 2,
|
||||
),
|
||||
// Dynamic Logo from backend
|
||||
BlocBuilder<ThemeCubit, ThemeState>(
|
||||
builder: (context, state) {
|
||||
if (state is ThemeLoaded) {
|
||||
return Image.network(
|
||||
state.logoUrl,
|
||||
width: 62,
|
||||
height: 62,
|
||||
errorBuilder:
|
||||
(_, __, ___) => const Icon(Icons.image_not_supported),
|
||||
);
|
||||
}
|
||||
return const Text(
|
||||
'LOGO',
|
||||
style: TextStyle(
|
||||
fontSize: 28,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
letterSpacing: 2,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user