From f2874fc9b8b08a032ca53f01eb13f154305b1235 Mon Sep 17 00:00:00 2001 From: FooJiaYin Date: Mon, 21 Nov 2022 06:01:45 +0800 Subject: [PATCH] chore: move price_button.dart to components/ --- lib/views/{screens => components}/price_button.dart | 2 +- lib/views/screens/machine.dart | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) rename lib/views/{screens => components}/price_button.dart (96%) diff --git a/lib/views/screens/price_button.dart b/lib/views/components/price_button.dart similarity index 96% rename from lib/views/screens/price_button.dart rename to lib/views/components/price_button.dart index 5c2be33..e4ebe64 100644 --- a/lib/views/screens/price_button.dart +++ b/lib/views/components/price_button.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import '../../theme/theme.dart'; -import '../components/neumorphic_container.dart'; +import 'neumorphic_container.dart'; class PriceButton extends StatelessWidget { const PriceButton({ diff --git a/lib/views/screens/machine.dart b/lib/views/screens/machine.dart index 4f34082..1ff8333 100644 --- a/lib/views/screens/machine.dart +++ b/lib/views/screens/machine.dart @@ -1,5 +1,3 @@ -import 'dart:async'; - import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -13,9 +11,9 @@ import '../components/exit_alert_dialog.dart'; import '../components/neumorphic_button.dart'; import '../components/neumorphic_container.dart'; import '../components/payment_dialog.dart'; +import '../components/price_button.dart'; import '../widgets/scaffold_page.dart'; import '../widgets/shape.dart'; -import 'price_button.dart'; export '../../models/machine.dart';