-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from atsign-foundation/redesign_welcome_home
feat: welcome home screen updated according to new UI
- Loading branch information
Showing
25 changed files
with
1,386 additions
and
1,071 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
import 'package:atsign_atmosphere_pro/data_models/file_modal.dart'; | ||
import 'package:atsign_atmosphere_pro/data_models/file_transfer.dart'; | ||
import 'package:atsign_atmosphere_pro/data_models/file_transfer_object.dart'; | ||
|
||
class FileEntity { | ||
final FileData? file; | ||
final String? date; | ||
final HistoryType? historyType; | ||
final String? atSign; | ||
final String? note; | ||
final String transferId; | ||
final FileTransferObject fileTransferObject; | ||
|
||
// to manage file upload | ||
bool isUploading; | ||
bool isUploaded; | ||
|
||
FileEntity({ | ||
this.file, | ||
this.date, | ||
this.historyType, | ||
this.atSign, | ||
this.note, | ||
required this.transferId, | ||
required this.fileTransferObject, | ||
this.isUploading = false, | ||
this.isUploaded = false, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import 'package:at_common_flutter/services/size_config.dart'; | ||
import 'package:file_picker/file_picker.dart'; | ||
import 'package:flutter/material.dart'; | ||
import '../../utils/colors.dart'; | ||
|
||
class FileCard extends StatefulWidget { | ||
PlatformFile fileDetail; | ||
FileCard({Key? key, required this.fileDetail}) : super(key: key); | ||
|
||
@override | ||
State<FileCard> createState() => _FileCardState(); | ||
} | ||
|
||
class _FileCardState extends State<FileCard> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
decoration: BoxDecoration( | ||
color: Colors.white, | ||
borderRadius: BorderRadius.circular(10), | ||
border: Border.all( | ||
color: ColorConstants.sidebarTextUnselected.withOpacity(0.5)), | ||
), | ||
margin: EdgeInsets.fromLTRB(0, 5, 5, 0), | ||
padding: EdgeInsets.fromLTRB(13, 8, 8, 13), | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
Column( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Container( | ||
width: 100.toWidth, | ||
child: Text( | ||
widget.fileDetail.name, | ||
style: TextStyle(color: Colors.black, fontSize: 12.toFont), | ||
maxLines: 1, | ||
overflow: TextOverflow.ellipsis, | ||
), | ||
), | ||
Text(widget.fileDetail.size.toString(), | ||
style: TextStyle(fontSize: 15.toFont)), | ||
], | ||
), | ||
Icon(Icons.remove_red_eye, size: 15.toFont) | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.