From 04bd7bc421fa3e3fdaffb8bc43df2890419b8672 Mon Sep 17 00:00:00 2001 From: Mohamed Elshiekh Date: Tue, 12 Nov 2024 17:07:08 +0300 Subject: [PATCH] [Refactored] add otp_text_field barrier file --- example/lib/main.dart | 4 ++-- lib/otp_text_field.dart | 5 +++-- lib/{ => src}/otp_field.dart | 4 ++-- lib/{ => src}/otp_field_style.dart | 0 lib/{ => src}/style.dart | 0 5 files changed, 7 insertions(+), 6 deletions(-) rename lib/{ => src}/otp_field.dart (99%) rename lib/{ => src}/otp_field_style.dart (100%) rename lib/{ => src}/style.dart (100%) diff --git a/example/lib/main.dart b/example/lib/main.dart index 7b13342..3c88143 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:otp_text_field/otp_field.dart'; + import 'package:otp_text_field/otp_text_field.dart'; -import 'package:otp_text_field/style.dart'; + void main() => runApp(MyApp()); diff --git a/lib/otp_text_field.dart b/lib/otp_text_field.dart index 6518fa0..fc56af6 100644 --- a/lib/otp_text_field.dart +++ b/lib/otp_text_field.dart @@ -1,4 +1,5 @@ library otp_text_field; -export 'otp_field.dart'; -export 'otp_field_style.dart'; +export 'src/otp_field.dart'; +export 'src/otp_field_style.dart'; +export 'src/style.dart'; diff --git a/lib/otp_field.dart b/lib/src/otp_field.dart similarity index 99% rename from lib/otp_field.dart rename to lib/src/otp_field.dart index 279571d..e7c358e 100644 --- a/lib/otp_field.dart +++ b/lib/src/otp_field.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:otp_text_field/otp_field_style.dart'; -import 'package:otp_text_field/style.dart'; +import 'otp_field_style.dart'; +import 'style.dart'; class OTPTextField extends StatefulWidget { /// TextField Controller diff --git a/lib/otp_field_style.dart b/lib/src/otp_field_style.dart similarity index 100% rename from lib/otp_field_style.dart rename to lib/src/otp_field_style.dart diff --git a/lib/style.dart b/lib/src/style.dart similarity index 100% rename from lib/style.dart rename to lib/src/style.dart