Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion assets/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"lang": "English",
"app_name": "WooApp",
"recently_viewed": "Recently you have looked at:",
"recently_viewed": "Recently you have looked at",
"tab_home": "Home",
"tab_catalog": "Catalog",
"tab_search": "Search",
Expand Down Expand Up @@ -87,6 +87,8 @@
"filter_on_sale": "On sale",
"filter_stock": "Availability",
"filter_price": "Price",
"product_description": "Description",
"product_characteristics": "Product properties",
"product_property_id": "Unique ID",
"product_property_name": "Name",
"product_property_price": "Price",
Expand Down
4 changes: 3 additions & 1 deletion assets/translations/ru.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"lang": "Русский",
"app_name": "WooApp",
"recently_viewed": "Недавно вы интересовались:",
"recently_viewed": "Недавно вы интересовались",
"tab_home": "Товары",
"tab_catalog": "Каталог",
"tab_search": "Поиск",
Expand Down Expand Up @@ -87,6 +87,8 @@
"filter_on_sale": "Акции и распродажи",
"filter_stock": "Наличие",
"filter_price": "Цена",
"product_description": "Описание",
"product_characteristics": "Характеристики товара",
"product_property_id": "Идентификатор",
"product_property_name": "Наименование",
"product_property_price": "Цена",
Expand Down
4 changes: 3 additions & 1 deletion assets/translations/uk.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"lang": "Українська",
"app_name": "WooApp",
"recently_viewed": "Нещодавно вас зацікавило:",
"recently_viewed": "Нещодавно вас зацікавило",
"tab_home": "Товари",
"tab_catalog": "Каталог",
"tab_search": "Пошук",
Expand Down Expand Up @@ -87,6 +87,8 @@
"filter_on_sale": "Акції та розпродажі",
"filter_stock": "Наявність",
"filter_price": "Ціна",
"product_description": "Опис",
"product_characteristics": "Характеристики товару",
"product_property_id": "Ідентифікатор",
"product_property_name": "Найменування",
"product_property_price": "Ціна",
Expand Down
3 changes: 1 addition & 2 deletions lib/database/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class AppDb {

Future<void> saveProductView(Product product) async {
var box = await Hive.openBox(boxViewedProduct);
if (box.containsKey('$keyViewedProduct${product.id}')) return box.close();
if (box.containsKey('$keyViewedProduct${product.id}')) return;
box.put(
'$keyViewedProduct${product.id}',
ViewedProduct(
Expand All @@ -195,7 +195,6 @@ class AppDb {
product.images[0].src,
),
);
return box.close();
}

Future<List<ViewedProduct>> getViewedProducts() async {
Expand Down
2 changes: 1 addition & 1 deletion lib/extensions/extensions_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void showWooScrollableBottomSheet(
maxChildSize: 0.85,
builder: (_, controller) => Container(
decoration: BoxDecoration(
color: Colors.white,
color: WooAppTheme.colorCommonBackground,
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(20.0),
topRight: const Radius.circular(20.0),
Expand Down
8 changes: 5 additions & 3 deletions lib/screens/category/category_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ class CategoryScreen extends StatefulWidget {
}

class _CategoryScreenState extends State<CategoryScreen> {
final CategoryAttributeDateSource _ds = locator<CategoryAttributeDateSource>();
final PagingController<int, CategoryProduct> _pagingController = PagingController(firstPageKey: 1);
final CategoryAttributeDateSource _ds =
locator<CategoryAttributeDateSource>();
final PagingController<int, CategoryProduct> _pagingController =
PagingController(firstPageKey: 1);

final _scaffoldKey = GlobalKey<ScaffoldState>();

Expand Down Expand Up @@ -67,7 +69,7 @@ class _CategoryScreenState extends State<CategoryScreen> {
color: WooAppTheme.colorToolbarForeground,
),
actions: [
IconButton(
if (widget.categoryDesc.isNotEmpty) IconButton(
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => CategoryInfoScreen(
Expand Down
Loading