mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-19 01:03:45 +02:00
Updated file names and imports
This commit is contained in:
parent
52d595bbac
commit
9603bc0220
18 changed files with 36 additions and 31 deletions
BIN
example/image/example_profile.png
Normal file
BIN
example/image/example_profile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 209 KiB |
|
@ -2,7 +2,7 @@ import 'dart:typed_data';
|
|||
|
||||
import 'package:example/utils/example_profile_service.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
import 'package:flutter_profile/flutter_profile.dart';
|
||||
|
||||
import 'utils/example_profile_data.dart';
|
||||
|
||||
|
@ -50,6 +50,7 @@ class _ProfileExampleState extends State<ProfileExample> {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: ProfilePage(
|
||||
bottomActionText: 'Log out',
|
||||
itemBuilderOptions: ItemBuilderOptions(
|
||||
inputDecorationField: {
|
||||
'firstName': const InputDecoration(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
import 'package:flutter_profile/flutter_profile.dart';
|
||||
|
||||
class ExampleProfileData extends ProfileData {
|
||||
ExampleProfileData({
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
import 'package:flutter_profile/flutter_profile.dart';
|
||||
|
||||
class ExampleProfileService extends ProfileService {
|
||||
ExampleProfileService();
|
||||
|
|
|
@ -62,6 +62,13 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.1"
|
||||
flutter_profile:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
flutter_test:
|
||||
dependency: "direct dev"
|
||||
description: flutter
|
||||
|
@ -102,13 +109,6 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.8.2"
|
||||
profile:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
sky_engine:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
|
|
|
@ -34,7 +34,7 @@ dependencies:
|
|||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.2
|
||||
profile:
|
||||
flutter_profile:
|
||||
path: ../
|
||||
|
||||
dev_dependencies:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library profile;
|
||||
library flutter_profile;
|
||||
|
||||
export 'src/widgets/profile/profile_page.dart';
|
||||
export 'src/widgets/profile/profile_style.dart';
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
import 'package:flutter_profile/src/models/user.dart';
|
||||
|
||||
/// ProfileService can be extended and set for the profilePage. The following method can be overriden.
|
||||
///
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/src/widgets/avatar/avatar_style.dart';
|
||||
import 'package:flutter_profile/src/widgets/avatar/avatar_style.dart';
|
||||
|
||||
class Avatar extends StatelessWidget {
|
||||
const Avatar({
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/src/widgets/item_builder/item_builder_options.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_builder_options.dart';
|
||||
|
||||
/// ItemBuilder is used to set the standard textfield for each undefined users data item.
|
||||
///
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/src/widgets/item_builder/item_builder.dart';
|
||||
import 'package:profile/src/widgets/item_builder/item_builder_options.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_builder.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_builder_options.dart';
|
||||
|
||||
class ItemList extends StatefulWidget {
|
||||
const ItemList(
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
import 'package:profile/src/widgets/profile/proifle_wrapper.dart';
|
||||
import 'package:flutter_profile/src/models/user.dart';
|
||||
import 'package:flutter_profile/src/services/profile_service.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_builder.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_builder_options.dart';
|
||||
import 'package:flutter_profile/src/widgets/profile/profile_style.dart';
|
||||
import 'package:flutter_profile/src/widgets/profile/proifle_wrapper.dart';
|
||||
|
||||
/// The ProfilePage widget is able to show the data of a user. By default the user is able to change this data. The widget has a couple of parameters listed below:
|
||||
///
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/src/widgets/avatar/avatar_style.dart';
|
||||
import 'package:flutter_profile/src/widgets/avatar/avatar_style.dart';
|
||||
|
||||
/// ProfielStyle is used to set a couple of style paramaters for the whole profile page.
|
||||
///
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/src/models/user.dart';
|
||||
import 'package:profile/src/services/profile_service.dart';
|
||||
import 'package:profile/src/widgets/avatar/avatar.dart';
|
||||
import 'package:profile/src/widgets/item_builder/item_builder.dart';
|
||||
import 'package:profile/src/widgets/item_builder/item_builder_options.dart';
|
||||
import 'package:profile/src/widgets/item_builder/item_list.dart';
|
||||
import 'package:profile/src/widgets/profile/profile_style.dart';
|
||||
import 'package:flutter_profile/src/models/user.dart';
|
||||
import 'package:flutter_profile/src/services/profile_service.dart';
|
||||
import 'package:flutter_profile/src/widgets/avatar/avatar.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_builder.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_builder_options.dart';
|
||||
import 'package:flutter_profile/src/widgets/item_builder/item_list.dart';
|
||||
import 'package:flutter_profile/src/widgets/profile/profile_style.dart';
|
||||
|
||||
class ProfileWrapper extends StatefulWidget {
|
||||
const ProfileWrapper({
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: profile
|
||||
name: flutter_profile
|
||||
description: A new Flutter package project.
|
||||
version: 0.0.1
|
||||
homepage:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_profile/flutter_profile.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
|
||||
import 'test_classes/test_profile_data.dart';
|
||||
import 'test_classes/test_profile_service.dart';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
import 'package:flutter_profile/flutter_profile.dart';
|
||||
|
||||
class TestProfileData extends ProfileData {
|
||||
TestProfileData({
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:profile/profile.dart';
|
||||
import 'package:flutter_profile/flutter_profile.dart';
|
||||
|
||||
class TestProfileService extends ProfileService {
|
||||
TestProfileService();
|
||||
|
|
Loading…
Reference in a new issue