Delete constants file and move to utils file
This commit is contained in:
parent
cbe2d8b4c6
commit
913eea1984
10 changed files with 14 additions and 15 deletions
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:nekoya_flutter/components/Category.dart';
|
||||
|
||||
import '../../../constants.dart';
|
||||
import '../utils/utils.dart';
|
||||
|
||||
class Categories extends StatelessWidget {
|
||||
const Categories({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../constants.dart';
|
||||
import '../utils/utils.dart';
|
||||
|
||||
class ColorDot extends StatelessWidget {
|
||||
const ColorDot({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:nekoya_flutter/constants.dart';
|
||||
import '../utils/utils.dart';
|
||||
import 'package:nekoya_flutter/screens/productcoba.dart';
|
||||
import 'package:nekoya_flutter/screens/products.dart';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:nekoya_flutter/screens/productcoba.dart';
|
||||
import 'package:nekoya_flutter/components/details_screen.dart';
|
||||
|
||||
import '../../../constants.dart';
|
||||
import '../utils/utils.dart';
|
||||
import 'product_card.dart';
|
||||
import 'section_title.dart';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:nekoya_flutter/screens/productcoba.dart';
|
||||
|
||||
import '../../../constants.dart';
|
||||
import '../utils/utils.dart';
|
||||
import 'product_card.dart';
|
||||
import 'section_title.dart';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../constants.dart';
|
||||
import '../utils/utils.dart';
|
||||
|
||||
class ProductCard extends StatelessWidget {
|
||||
const ProductCard({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
import '../../../constants.dart';
|
||||
import '../utils/utils.dart';
|
||||
|
||||
const OutlineInputBorder outlineInputBorder = OutlineInputBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(12)),
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
const Color primaryColor = Color(0xFFF67952);
|
||||
const Color bgColor = Color(0xFFFBFBFD);
|
||||
|
||||
const double defaultPadding = 16.0;
|
||||
const double defaultBorderRadius = 12.0;
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:nekoya_flutter/constants.dart';
|
||||
import 'package:nekoya_flutter/utils/utils.dart';
|
||||
|
||||
import 'package:nekoya_flutter/components/categories.dart';
|
||||
import 'package:nekoya_flutter/components/new_arrival_products.dart';
|
||||
|
|
|
@ -12,6 +12,12 @@ class HideScrollGlow extends ScrollBehavior {
|
|||
}
|
||||
}
|
||||
|
||||
const Color primaryColor = Color(0xFFF67952);
|
||||
const Color bgColor = Color(0xFFFBFBFD);
|
||||
|
||||
const double defaultPadding = 16.0;
|
||||
const double defaultBorderRadius = 12.0;
|
||||
|
||||
const kHintTextStyle = TextStyle(
|
||||
color: Colors.white54,
|
||||
fontFamily: 'OpenSans',
|
||||
|
|
Loading…
Add table
Reference in a new issue