flutter_settings_screens icon indicating copy to clipboard operation
flutter_settings_screens copied to clipboard

Title is not aligned for Arabic

Open Sasaaa-88 opened this issue 4 years ago • 1 comments

I am using the package for an app that basically using Arabic language. All stuff if very good except the preference title which is aligned to the left but all the preference are aligned to the right as it should. I tried to use 'Align' widget but in vain. Here is my code:

SettingsScreen( title: RestaurantCashierLocalizations.of(context).text("settings_title"), children: [ SettingsGroup( title: RestaurantCashierLocalizations.of(context) .text("pref_general_settings_group_title"), children: <Widget>[ TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_restaurant_name_title"), settingKey: 'restaurant_name', initialValue: '', borderColor: Colors.blueAccent, ), RadioSettingsTile<String>( title: RestaurantCashierLocalizations.of(context) .text("pref_default_order_type_title"), settingKey: 'default_order_type', values: <String, String>{ 'Indoor': RestaurantCashierLocalizations.of(context) .text("pref_order_type_indoor"), 'Delivery': RestaurantCashierLocalizations.of(context) .text("pref_order_type_delivery"), 'Take Away': RestaurantCashierLocalizations.of(context) .text("pref_order_type_take_away"), 'Pick Up': RestaurantCashierLocalizations.of(context) .text("pref_order_type_pick_up"), }, selected: 'Take Away', ) ]), SettingsGroup( title: RestaurantCashierLocalizations.of(context) .text("pref_halls_management_settings_title"), children: <Widget>[ SwitchSettingsTile( settingKey: 'has_halls_management', title: RestaurantCashierLocalizations.of(context) .text("pref_has_halls_management_title"), defaultValue: false, ), TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_default_hall_number_title"), settingKey: 'default_hall_number', initialValue: '1', borderColor: Colors.blueAccent, ), TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_tables_count_title"), settingKey: 'tables_count', initialValue: '10', borderColor: Colors.blueAccent, ), ]), SettingsGroup( title: RestaurantCashierLocalizations.of(context) .text("pref_session_data_title"), children: <Widget>[ SwitchSettingsTile( settingKey: 'reset_session_data_automatically', title: RestaurantCashierLocalizations.of(context) .text("pref_reset_session_data_automatically_title"), defaultValue: true, ), RadioSettingsTile<String>( title: RestaurantCashierLocalizations.of(context) .text("pref_reset_session_data_title"), settingKey: 'reset_session_data', values: <String, String>{ 'On Shift Change': RestaurantCashierLocalizations.of(context).text( "pref_reset_session_data_on_shift_change_title"), 'Daily': RestaurantCashierLocalizations.of(context) .text("pref_reset_session_data_daily_title"), }, selected: 'Daily', ) ]), SettingsGroup( title: RestaurantCashierLocalizations.of(context) .text("pref_receipt_options_title"), children: <Widget>[ TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_starting_receipt_number_title"), settingKey: 'current_receipt_number', initialValue: '1', borderColor: Colors.blueAccent, ), RadioSettingsTile<String>( title: RestaurantCashierLocalizations.of(context) .text("pref_reset_receipt_count_title"), settingKey: 'reset_receipt_count', values: <String, String>{ 'On Shift Change': RestaurantCashierLocalizations.of(context).text( "pref_reset_receipt_count_on_shift_change_title"), 'Daily': RestaurantCashierLocalizations.of(context) .text("pref_reset_receipt_count_daily_title"), 'Never': RestaurantCashierLocalizations.of(context) .text("pref_reset_receipt_count_never_title"), }, selected: 'Never', ) ]), SettingsGroup( title: RestaurantCashierLocalizations.of(context) .text("pref_service_inclusion_title"), children: <Widget>[ SwitchSettingsTile( settingKey: 'include_service', title: RestaurantCashierLocalizations.of(context) .text("pref_include_service_title"), defaultValue: false, ), RadioSettingsTile<String>( title: RestaurantCashierLocalizations.of(context) .text("pref_service_type_title"), settingKey: 'service_type', values: <String, String>{ 'Amount': RestaurantCashierLocalizations.of(context) .text("pref_service_type_Amount_title"), 'Percentage': RestaurantCashierLocalizations.of(context) .text("pref_service_type_Percentage_title"), }, selected: 'Percentage', ), TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_service_value_title"), settingKey: 'service_value', initialValue: '10', borderColor: Colors.blueAccent, ), ]), SettingsGroup( title: RestaurantCashierLocalizations.of(context) .text("pref_printing_options_title"), children: <Widget>[ TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_server_ip_address_title"), settingKey: 'server_ip_address', initialValue: 'localhost:8888', borderColor: Colors.blueAccent, ), TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_printing_server_ip_address_title"), settingKey: 'printing_server_ip_address', initialValue: 'localhost:80', borderColor: Colors.blueAccent, ), TextInputSettingsTile( title: RestaurantCashierLocalizations.of(context) .text("pref_printing_zone_name_title"), settingKey: 'printing_zone_name', initialValue: 'Cashier', borderColor: Colors.blueAccent, ), SwitchSettingsTile( settingKey: 'print_client_receipt_copy', title: RestaurantCashierLocalizations.of(context) .text("pref_print_client_receipt_copy_title"), defaultValue: false, ), ]), ]) And the screen shot 2 1 :

Sasaaa-88 avatar Oct 11 '21 11:10 Sasaaa-88

This is solved in the most recent commit.

Juggler98 avatar Sep 29 '22 16:09 Juggler98