Skip to content

Commit

Permalink
Organize directory
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Dec 23, 2023
1 parent d719538 commit 7bedb86
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 50 deletions.
12 changes: 6 additions & 6 deletions lib/shirne_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export 'src/controller.dart';
export 'src/localizations.dart';
export 'src/theme.dart';
export 'src/dialog_icons.dart';
export 'src/image_preview.dart';
export 'src/popup.dart';
export 'src/progress.dart';
export 'src/snack.dart';
export 'src/toast.dart';
export 'src/dropdown.dart';
export 'src/widgets/image_preview.dart';
export 'src/widgets/popup.dart';
export 'src/widgets/progress.dart';
export 'src/widgets/snack.dart';
export 'src/widgets/toast.dart';
export 'src/widgets/dropdown.dart';

export 'package:combined_animation/combined_animation.dart';
46 changes: 16 additions & 30 deletions lib/src/dialog_icons.dart
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
import 'package:flutter/widgets.dart';

const _fontPackage = 'shirne_dialog';
const _pkg = 'shirne_dialog';
const _fmly = 'shirne_dialog_icons';

class DialogIcons {
static const _fontFamily = 'dicons';
static const checkmark =
IconData(0xe900, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const checkmarkCircle =
IconData(0xe901, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const checkmarkFill =
IconData(0xe902, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const close =
IconData(0xe903, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const closeCircle =
IconData(0xe904, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const closeFill =
IconData(0xe905, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const help =
IconData(0xe906, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const helpCircle =
IconData(0xe907, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const helpFill =
IconData(0xe908, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const information =
IconData(0xe909, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const informationCircle =
IconData(0xe90a, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const informationFill =
IconData(0xe90b, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const warningFill =
IconData(0xe90c, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const warningOutline =
IconData(0xe90d, fontFamily: _fontFamily, fontPackage: _fontPackage);
static const checkmark = IconData(0xe900, fontFamily: _fmly, fontPackage: _pkg);
static const checkmarkCircle = IconData(0xe901, fontFamily: _fmly, fontPackage: _pkg);
static const checkmarkFill = IconData(0xe902, fontFamily: _fmly, fontPackage: _pkg);
static const close = IconData(0xe903, fontFamily: _fmly, fontPackage: _pkg);
static const closeCircle = IconData(0xe904, fontFamily: _fmly, fontPackage: _pkg);
static const closeFill = IconData(0xe905, fontFamily: _fmly, fontPackage: _pkg);
static const help = IconData(0xe906, fontFamily: _fmly, fontPackage: _pkg);
static const helpCircle = IconData(0xe907, fontFamily: _fmly, fontPackage: _pkg);
static const helpFill = IconData(0xe908, fontFamily: _fmly, fontPackage: _pkg);
static const information = IconData(0xe909, fontFamily: _fmly, fontPackage: _pkg);
static const informationCircle = IconData(0xe90a, fontFamily: _fmly, fontPackage: _pkg);
static const informationFill = IconData(0xe90b, fontFamily: _fmly, fontPackage: _pkg);
static const warningFill = IconData(0xe90c, fontFamily: _fmly, fontPackage: _pkg);
static const warningOutline = IconData(0xe90d, fontFamily: _fmly, fontPackage: _pkg);
}
12 changes: 6 additions & 6 deletions lib/src/my_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import 'dart:async';
import 'package:combined_animation/combined_animation.dart';
import 'package:flutter/material.dart';

import 'dropdown.dart';
import 'widgets/dropdown.dart';
import 'localizations.dart';
import 'controller.dart';
import 'image_preview.dart';
import 'popup.dart';
import 'progress.dart';
import 'snack.dart';
import 'widgets/image_preview.dart';
import 'widgets/progress.dart';
import 'widgets/popup.dart';
import 'widgets/snack.dart';
import 'theme.dart';
import 'toast.dart';
import 'widgets/toast.dart';

enum IconType {
none,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dropdown.dart → lib/src/widgets/dropdown.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:math' as math;
import 'package:flutter/material.dart';

import '../shirne_dialog.dart';
import '../../shirne_dialog.dart';

class DropdownWidget extends StatefulWidget {
const DropdownWidget({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:typed_data';

import 'package:flutter/material.dart';

import '../shirne_dialog.dart';
import '../../shirne_dialog.dart';

final _placementImage = MemoryImage(
Uint8List.fromList([
Expand Down
2 changes: 1 addition & 1 deletion lib/src/popup.dart → lib/src/widgets/popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library shirne_dialog;

import 'package:flutter/material.dart';

import 'theme.dart';
import '../theme.dart';

/// A popup Widget wrapper
class PopupWidget extends StatefulWidget {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/progress.dart → lib/src/widgets/progress.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library shirne_dialog;

import 'package:flutter/material.dart';

import 'theme.dart';
import '../theme.dart';

/// a progress Widget
class ProgressWidget extends StatefulWidget {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/snack.dart → lib/src/widgets/snack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:math' as math;

import 'package:flutter/material.dart';

import 'theme.dart';
import '../theme.dart';

/// a [SnickBar] like Widget
class SnackWidget extends StatefulWidget {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/toast.dart → lib/src/widgets/toast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import 'dart:async';

import 'package:flutter/material.dart';

import 'my_dialog.dart';
import 'theme.dart';
import '../my_dialog.dart';
import '../theme.dart';

const _defaultDuration = Duration(milliseconds: 300);

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ dev_dependencies:

flutter:
fonts:
- family: dicons
- family: shirne_dialog_icons
fonts:
- asset: assets/fonts/icons.ttf

0 comments on commit 7bedb86

Please sign in to comment.