Browse Source

finish app

fix_bug
mohsen zamani 2 years ago
parent
commit
b7de4af818
  1. 1
      lib/core/language/translator.dart
  2. 2
      lib/core/utils/app_utils.dart
  3. 0
      lib/features/about_us/about_us_screen.dart
  4. 1
      lib/features/main/main_screen.dart
  5. 7
      lib/features/main/widget/main_item_widget.dart
  6. 2
      lib/features/posts/screen/posts_screen.dart

1
lib/core/language/translator.dart

@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show rootBundle; import 'package:flutter/services.dart' show rootBundle;
import 'package:local_db_core/lib/boxes/box_list/setting_box/app_setting_box.dart'; import 'package:local_db_core/lib/boxes/box_list/setting_box/app_setting_box.dart';
import 'package:repositories/app_setting_box_domain/repository/app_setting_box_repository.dart'; import 'package:repositories/app_setting_box_domain/repository/app_setting_box_repository.dart';
import 'package:sonnat/core/language/language_cubit.dart';
import 'package:sonnat/core/language/languages.dart'; import 'package:sonnat/core/language/languages.dart';
final List<String> supportedLanguages = [ final List<String> supportedLanguages = [

2
lib/core/utils/app_utils.dart

@ -1,9 +1,7 @@
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:shamsi_date/shamsi_date.dart'; import 'package:shamsi_date/shamsi_date.dart';
import 'package:sonnat/core/extensions/number_extension.dart'; import 'package:sonnat/core/extensions/number_extension.dart';
import 'package:sonnat/core/language/language_cubit.dart';
import 'package:sonnat/core/utils/toast.dart'; import 'package:sonnat/core/utils/toast.dart';
class DisableScrollEffect extends ScrollBehavior { class DisableScrollEffect extends ScrollBehavior {

0
lib/features/aabout_us/about_us_screen.dart → lib/features/about_us/about_us_screen.dart

1
lib/features/main/main_screen.dart

@ -93,7 +93,6 @@ class _MainScreenState extends State<MainScreen> {
horizontal: context.width * 8 / AppConstants.instance.appWidth, horizontal: context.width * 8 / AppConstants.instance.appWidth,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
SvgPicture.asset('ic_search'.svgPath), SvgPicture.asset('ic_search'.svgPath),
SizedBox(width: context.width * 14 / AppConstants.instance.appWidth), SizedBox(width: context.width * 14 / AppConstants.instance.appWidth),

7
lib/features/main/widget/main_item_widget.dart

@ -28,14 +28,19 @@ class MainItemWidget extends StatelessWidget {
width: 35, width: 35,
), ),
SizedBox(height: context.height * 8 / AppConstants.instance.appHeight), SizedBox(height: context.height * 8 / AppConstants.instance.appHeight),
Text(
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Text(
name, name,
style: const TextStyle( style: const TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 14, fontSize: 14,
), ),
maxLines: 1,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
),
], ],
), ),
); );

2
lib/features/posts/screen/posts_screen.dart

@ -9,7 +9,7 @@ import 'package:sonnat/core/select_language/screen/select_language_screen.dart';
import 'package:sonnat/core/utils/app_constants.dart'; import 'package:sonnat/core/utils/app_constants.dart';
import 'package:sonnat/core/utils/base_cubit_type.dart'; import 'package:sonnat/core/utils/base_cubit_type.dart';
import 'package:sonnat/core/widgets/loading_list_widget.dart'; import 'package:sonnat/core/widgets/loading_list_widget.dart';
import 'package:sonnat/features/aabout_us/about_us_screen.dart';
import 'package:sonnat/features/about_us/about_us_screen.dart';
import 'package:sonnat/features/posts/cubit/posts_cubit.dart'; import 'package:sonnat/features/posts/cubit/posts_cubit.dart';
import 'package:sonnat/features/posts/widgets/filter_item_widget.dart'; import 'package:sonnat/features/posts/widgets/filter_item_widget.dart';
import 'package:sonnat/features/posts/widgets/post_item_widget.dart'; import 'package:sonnat/features/posts/widgets/post_item_widget.dart';

Loading…
Cancel
Save