diff --git a/README.md b/README.md deleted file mode 100644 index 9ea35c5..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# flutter-cloud-docs -A UI for online documents Application using Flutter diff --git a/assets/font_used.txt b/assets/font_used.txt deleted file mode 100644 index db3ba8e..0000000 --- a/assets/font_used.txt +++ /dev/null @@ -1 +0,0 @@ -https://fonts.google.com/specimen/Quicksand?preview.text=My+Orders&preview.text_type=custom&query=quick diff --git a/assets/icons/docs.svg b/assets/icons/docs.svg deleted file mode 100644 index ab3d70e..0000000 --- a/assets/icons/docs.svg +++ /dev/null @@ -1 +0,0 @@ -docsAsset 11 \ No newline at end of file diff --git a/assets/icons/favorite.svg b/assets/icons/favorite.svg deleted file mode 100644 index a84326d..0000000 --- a/assets/icons/favorite.svg +++ /dev/null @@ -1 +0,0 @@ -favoriteAsset 9 \ No newline at end of file diff --git a/assets/icons/files/docx.svg b/assets/icons/files/docx.svg deleted file mode 100644 index 065b620..0000000 --- a/assets/icons/files/docx.svg +++ /dev/null @@ -1 +0,0 @@ -docsAsset 3docx \ No newline at end of file diff --git a/assets/icons/files/jpeg.svg b/assets/icons/files/jpeg.svg deleted file mode 100644 index 333b0f5..0000000 --- a/assets/icons/files/jpeg.svg +++ /dev/null @@ -1 +0,0 @@ -jpegAsset 9jpeg \ No newline at end of file diff --git a/assets/icons/files/pdf.svg b/assets/icons/files/pdf.svg deleted file mode 100644 index aa6e54e..0000000 --- a/assets/icons/files/pdf.svg +++ /dev/null @@ -1 +0,0 @@ -pdfAsset 8pdf \ No newline at end of file diff --git a/assets/icons/files/ppt.svg b/assets/icons/files/ppt.svg deleted file mode 100644 index 4d1203b..0000000 --- a/assets/icons/files/ppt.svg +++ /dev/null @@ -1 +0,0 @@ -pptAsset 5ppt \ No newline at end of file diff --git a/assets/icons/files/xlsx.svg b/assets/icons/files/xlsx.svg deleted file mode 100644 index b776cfa..0000000 --- a/assets/icons/files/xlsx.svg +++ /dev/null @@ -1 +0,0 @@ -xlsxAsset 7xlsx \ No newline at end of file diff --git a/assets/icons/folder.svg b/assets/icons/folder.svg deleted file mode 100644 index 4e3d874..0000000 --- a/assets/icons/folder.svg +++ /dev/null @@ -1 +0,0 @@ -folderAsset 6 \ No newline at end of file diff --git a/assets/icons/home.svg b/assets/icons/home.svg deleted file mode 100644 index cc6e954..0000000 --- a/assets/icons/home.svg +++ /dev/null @@ -1 +0,0 @@ -homeAsset 8 \ No newline at end of file diff --git a/assets/icons/menu.svg b/assets/icons/menu.svg deleted file mode 100644 index 2c5c34e..0000000 --- a/assets/icons/menu.svg +++ /dev/null @@ -1 +0,0 @@ -menuAsset 5 \ No newline at end of file diff --git a/assets/icons/no_favorite.svg b/assets/icons/no_favorite.svg deleted file mode 100644 index 20267fa..0000000 --- a/assets/icons/no_favorite.svg +++ /dev/null @@ -1 +0,0 @@ -no_fevoriteAsset 13 \ No newline at end of file diff --git a/assets/icons/search.svg b/assets/icons/search.svg deleted file mode 100644 index 72b0da2..0000000 --- a/assets/icons/search.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/assets/icons/search_folder.svg b/assets/icons/search_folder.svg deleted file mode 100644 index 0359fcd..0000000 --- a/assets/icons/search_folder.svg +++ /dev/null @@ -1 +0,0 @@ -search_folderAsset 1 \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart deleted file mode 100644 index 930422c..0000000 --- a/lib/main.dart +++ /dev/null @@ -1,51 +0,0 @@ -import 'package:cloud_docs/screens/docs_screen.dart'; -import 'package:cloud_docs/screens/favorite_screen.dart'; -import 'package:cloud_docs/screens/main_screen.dart'; -import 'package:cloud_docs/utils.dart'; -import 'package:cloud_docs/widgets/my_bottom_sheet.dart'; -import 'package:flutter/material.dart'; - -void main() => runApp(MyApp()); - -class MyApp extends StatelessWidget { - @override - Widget build(BuildContext context) { - return MaterialApp( - title: 'Travel App', - debugShowCheckedModeBanner: false, - theme: ThemeData(primaryColor: Color.fromRGBO(100, 45, 254, 1)), - home: HomeScreen(), - ); - } -} - -class HomeScreen extends StatefulWidget { - @override - _HomeScreenState createState() => _HomeScreenState(); -} - -class _HomeScreenState extends State { - int _index = 0; - - @override - Widget build(BuildContext context) { - return Scaffold( - body: PageView( - controller: controller, - onPageChanged: (value) { - setState(() { - _index = value; - }); - }, - physics: NeverScrollableScrollPhysics(), - children: [ - MainScreen(), - FavoriteScreen(), - DocsScreen(), - ], - ), - backgroundColor: backgroundColor, - bottomSheet: MyBottomSheet(_index), - ); - } -} diff --git a/lib/screens/docs_screen.dart b/lib/screens/docs_screen.dart deleted file mode 100644 index 85c8e3f..0000000 --- a/lib/screens/docs_screen.dart +++ /dev/null @@ -1,32 +0,0 @@ -import 'package:cloud_docs/widgets/folder_header.dart'; -import 'package:cloud_docs/widgets/my_folder.dart'; -import 'package:cloud_docs/widgets/recent_files.dart'; -import 'package:cloud_docs/widgets/search_bar.dart'; -import 'package:cloud_docs/widgets/section_heading.dart'; -import 'package:cloud_docs/widgets/title_main.dart'; -import 'package:flutter/material.dart'; - -class DocsScreen extends StatefulWidget { - @override - _DocsScreenState createState() => _DocsScreenState(); -} - -class _DocsScreenState extends State { - @override - Widget build(BuildContext context) { - return SafeArea( - child: Column( - children: [ - TitleDocs(), - SearchBar(), - FolderHeader(), - SectionHeading("Recent Files", "View All", false), - RecentFiles(), - SizedBox(height: 15), - SectionHeading('My Folder', '', true), - MyFolder(), - ], - ), - ); - } -} diff --git a/lib/screens/favorite_screen.dart b/lib/screens/favorite_screen.dart deleted file mode 100644 index 3df74c9..0000000 --- a/lib/screens/favorite_screen.dart +++ /dev/null @@ -1,30 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class FavoriteScreen extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - SvgPicture.asset( - 'assets/icons/no_favorite.svg', - width: 80, - color: textColor.withOpacity(0.1), - ), - Text( - 'No Favorite', - style: TextStyle( - fontSize: 24, - color: textColor.withOpacity(0.2), - fontWeight: FontWeight.w400, - fontFamily: 'Quicksand', - ), - ) - ], - ), - ); - } -} diff --git a/lib/screens/main_screen.dart b/lib/screens/main_screen.dart deleted file mode 100644 index 3c97e4a..0000000 --- a/lib/screens/main_screen.dart +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:cloud_docs/widgets/featured_list.dart'; -import 'package:cloud_docs/widgets/folder_list.dart'; -import 'package:cloud_docs/widgets/section_heading.dart'; -import 'package:cloud_docs/widgets/title_main.dart'; -import 'package:flutter/material.dart'; - -class MainScreen extends StatefulWidget { - @override - _MainScreenState createState() => _MainScreenState(); -} - -class _MainScreenState extends State { - @override - Widget build(BuildContext context) { - return SafeArea( - child: Column( - children: [ - TitleMain(), - SizedBox(height: 20), - FeaturedList(), - SectionHeading('Top Rated Docs', "More", false), - FolderList(), - ], - ), - ); - } -} diff --git a/lib/utils.dart b/lib/utils.dart deleted file mode 100644 index cf3d2e9..0000000 --- a/lib/utils.dart +++ /dev/null @@ -1,63 +0,0 @@ -import 'package:flutter/material.dart'; - -Color textColor = Color.fromRGBO(88, 88, 88, 1); -Color backgroundColor = Color.fromRGBO(248, 242, 253, 1); -Color whiteTextColor = Color.fromRGBO(242, 242, 242, 1); - -TextStyle headingStyle = TextStyle( - fontFamily: 'Quicksand', - fontSize: 32, - fontWeight: FontWeight.w600, - color: textColor, -); - -class FeaturedFolder { - final String name; - final double freeSpace; - final double totalSpace; - final Color backColor; - - FeaturedFolder(this.name, this.freeSpace, this.totalSpace, this.backColor); -} - -List features = [ - FeaturedFolder('Work and Private Document', 120.0, 500.0, - Color.fromRGBO(100, 46, 254, 1)), - FeaturedFolder( - 'Client Specific Document', 5.0, 50.5, Color.fromRGBO(255, 128, 0, 1)), - FeaturedFolder('Upcoming Project Document', 45.0, 100.0, Colors.red) -]; - -class Folder { - final String name; - final int count; - final Icon iconName; - - Folder(this.name, this.count, this.iconName); -} - -List folders = [ - Folder('UI / UX Projects', 255, - Icon(Icons.create, size: 24, color: whiteTextColor)), - Folder('Project Report', 30, - Icon(Icons.assessment, size: 24, color: whiteTextColor)), - Folder('Project Summary', 30, - Icon(Icons.description, size: 24, color: whiteTextColor)), -]; - -PageController controller = PageController(initialPage: 0, keepPage: true); - -class FileProto { - final String name; - final String type; - - FileProto(this.name, this.type); -} - -List files = [ - FileProto('Brief', 'docx'), - FileProto('Present', 'ppt'), - FileProto('Report', 'xlsx'), - FileProto('Brief', 'pdf'), - FileProto('Cover', 'jpeg'), -]; diff --git a/lib/widgets/featured_list.dart b/lib/widgets/featured_list.dart deleted file mode 100644 index 5bc7a7e..0000000 --- a/lib/widgets/featured_list.dart +++ /dev/null @@ -1,119 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; - -class FeaturedList extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Container( - height: 410, - child: ListView.builder( - itemCount: 3, - padding: EdgeInsets.symmetric(horizontal: 20), - scrollDirection: Axis.horizontal, - physics: BouncingScrollPhysics(), - itemBuilder: (context, index) { - var freeUP = - 1 - features[index].freeSpace / features[index].totalSpace; - return Container( - width: 280, - margin: index == 0 - ? EdgeInsets.only(right: 20, bottom: 40) - : EdgeInsets.only(left: 20, right: 20, bottom: 40), - padding: EdgeInsets.all(30), - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: Text( - features[index].name, - style: TextStyle( - fontSize: 35, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w900, - color: whiteTextColor, - ), - ), - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - 'Free Space', - style: TextStyle( - fontSize: 20, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w600, - color: whiteTextColor, - ), - ), - Text( - features[index].totalSpace.toStringAsFixed(0) + - " GB", - style: TextStyle( - fontSize: 16, - fontFamily: 'Quicksand', - color: whiteTextColor, - ), - ), - SizedBox(height: 5), - Stack( - children: [ - Container( - height: 8, - width: 120, - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(30), - ), - ), - Container( - height: 8, - width: 120 * freeUP, - decoration: BoxDecoration( - color: freeUP > 0.85 - ? Color.fromRGBO(255, 0, 0, 1) - : Color.fromRGBO(128, 255, 0, 1), - borderRadius: BorderRadius.circular(30), - ), - ), - ], - ) - ], - ), - Container( - height: 50, - width: 50, - alignment: Alignment.center, - decoration: BoxDecoration( - shape: BoxShape.circle, - color: Colors.black26, - ), - child: Icon( - Icons.add, - color: whiteTextColor.withOpacity(0.5), - size: 24, - ), - ) - ], - ) - ], - ), - decoration: BoxDecoration( - color: features[index].backColor, - borderRadius: BorderRadius.circular(30), - boxShadow: [ - BoxShadow( - blurRadius: 25, - color: features[index].backColor.withOpacity(0.5), - offset: Offset(0, 10), - spreadRadius: 3, - ) - ]), - ); - }), - ); - } -} diff --git a/lib/widgets/folder_header.dart b/lib/widgets/folder_header.dart deleted file mode 100644 index 5ecb65a..0000000 --- a/lib/widgets/folder_header.dart +++ /dev/null @@ -1,80 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -import '../utils.dart'; - -class FolderHeader extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Container( - height: 120, - margin: EdgeInsets.symmetric(horizontal: 20) - .add(EdgeInsets.only(bottom: 20, top: 5)), - padding: EdgeInsets.all(20), - decoration: BoxDecoration( - color: Theme.of(context).primaryColor, - boxShadow: [ - BoxShadow( - blurRadius: 15, - offset: Offset(0, 10), - color: Theme.of(context).primaryColor.withOpacity(0.3), - spreadRadius: 10), - ], - borderRadius: BorderRadius.circular(10), - ), - child: Row( - children: [ - SvgPicture.asset( - 'assets/icons/search_folder.svg', - width: 65, - ), - SizedBox(width: 30), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - 'Free Space', - style: TextStyle( - fontSize: 20, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w600, - color: whiteTextColor, - ), - ), - Text( - "500 GB", - style: TextStyle( - fontSize: 16, - fontFamily: 'Quicksand', - color: whiteTextColor, - ), - ), - SizedBox(height: 5), - Stack( - children: [ - Container( - height: 8, - width: 120, - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(30), - ), - ), - Container( - height: 8, - width: 40, - decoration: BoxDecoration( - color: Color.fromRGBO(128, 255, 0, 1), - borderRadius: BorderRadius.circular(30), - ), - ), - ], - ) - ], - ) - ], - ), - ); - } -} diff --git a/lib/widgets/folder_list.dart b/lib/widgets/folder_list.dart deleted file mode 100644 index 5dc1fab..0000000 --- a/lib/widgets/folder_list.dart +++ /dev/null @@ -1,79 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class FolderList extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Container( - height: 140, - child: ListView.builder( - itemCount: folders.length, - padding: EdgeInsets.symmetric(horizontal: 20), - scrollDirection: Axis.horizontal, - physics: BouncingScrollPhysics(), - itemBuilder: (context, index) { - return Container( - width: 350, - margin: index == 0 - ? EdgeInsets.only(bottom: 20, right: 20, top: 10) - : EdgeInsets.only(bottom: 20, left: 20, right: 20, top: 10), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(15), - ), - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 20), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Row( - children: [ - Stack( - alignment: Alignment.center, - children: [ - SvgPicture.asset( - 'assets/icons/folder.svg', - width: 60, - ), - folders[index].iconName, - ], - ), - SizedBox(width: 30), - Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - folders[index].name, - style: TextStyle( - fontSize: 18, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w600, - ), - ), - Text( - '${folders[index].count} files', - style: TextStyle( - fontSize: 16, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w400, - ), - ) - ], - ) - ], - ), - Icon( - Icons.more_vert, - size: 24, - color: textColor.withOpacity(0.5), - ) - ], - ), - ), - ); - }), - ); - } -} diff --git a/lib/widgets/my_bottom_sheet.dart b/lib/widgets/my_bottom_sheet.dart deleted file mode 100644 index 5fb83e0..0000000 --- a/lib/widgets/my_bottom_sheet.dart +++ /dev/null @@ -1,125 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class MyBottomSheet extends StatefulWidget { - final int _index; - - MyBottomSheet(this._index); - @override - _MyBottomSheetState createState() => _MyBottomSheetState(_index); -} - -class _MyBottomSheetState extends State { - int _index; - - _MyBottomSheetState(this._index); - @override - Widget build(BuildContext context) { - return Container( - height: 60, - decoration: BoxDecoration(color: Colors.white), - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 70), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceAround, - children: [ - Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - InkWell( - onTap: () { - setState(() { - _index = 0; - controller.jumpToPage(_index); - }); - }, - child: SvgPicture.asset( - 'assets/icons/home.svg', - width: 24, - color: _index == 0 - ? Theme.of(context).primaryColor - : textColor.withOpacity(0.6), - ), - ), - _index == 0 - ? Container( - width: 6, - height: 6, - margin: EdgeInsets.only(top: 5), - decoration: BoxDecoration( - color: Theme.of(context).primaryColor, - shape: BoxShape.circle, - ), - ) - : SizedBox(height: 0), - ], - ), - Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - InkWell( - onTap: () { - setState(() { - _index = 1; - controller.jumpToPage(_index); - }); - }, - child: SvgPicture.asset( - 'assets/icons/favorite.svg', - width: 24, - color: _index == 1 - ? Theme.of(context).primaryColor - : textColor.withOpacity(0.6), - ), - ), - _index == 1 - ? Container( - width: 6, - height: 6, - margin: EdgeInsets.only(top: 5), - decoration: BoxDecoration( - color: Theme.of(context).primaryColor, - shape: BoxShape.circle, - ), - ) - : SizedBox(height: 0), - ], - ), - Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - InkWell( - onTap: () { - setState(() { - _index = 2; - controller.jumpToPage(_index); - }); - }, - child: SvgPicture.asset( - 'assets/icons/docs.svg', - width: 24, - color: _index == 2 - ? Theme.of(context).primaryColor - : textColor.withOpacity(0.6), - ), - ), - _index == 2 - ? Container( - width: 6, - height: 6, - margin: EdgeInsets.only(top: 5), - decoration: BoxDecoration( - color: Theme.of(context).primaryColor, - shape: BoxShape.circle, - ), - ) - : SizedBox(height: 0), - ], - ), - ], - ), - ), - ); - } -} diff --git a/lib/widgets/my_folder.dart b/lib/widgets/my_folder.dart deleted file mode 100644 index b0b3433..0000000 --- a/lib/widgets/my_folder.dart +++ /dev/null @@ -1,68 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class MyFolder extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Container( - height: 200, - child: ListView.builder( - itemCount: folders.length, - physics: BouncingScrollPhysics(), - scrollDirection: Axis.horizontal, - padding: EdgeInsets.only(left: 5), - itemBuilder: (context, index) { - return Container( - width: 150, - margin: EdgeInsets.symmetric(horizontal: 20) - .add(EdgeInsets.only(top: 10, bottom: 30)), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(10), - boxShadow: [ - BoxShadow( - blurRadius: 10, - offset: Offset(0, 30), - color: Theme.of(context).primaryColor.withOpacity(0.05), - spreadRadius: 20, - ) - ], - ), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Stack( - alignment: Alignment.center, - children: [ - SvgPicture.asset( - 'assets/icons/folder.svg', - width: 60, - ), - folders[index].iconName, - ], - ), - SizedBox(height: 20), - Text( - folders[index].name, - style: TextStyle( - fontSize: 14, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w800, - ), - ), - Text( - '${folders[index].count} files', - style: TextStyle( - fontSize: 12, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w400, - ), - ), - ], - ), - ); - }), - ); - } -} diff --git a/lib/widgets/recent_files.dart b/lib/widgets/recent_files.dart deleted file mode 100644 index c5ce3cf..0000000 --- a/lib/widgets/recent_files.dart +++ /dev/null @@ -1,47 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class RecentFiles extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Container( - height: 120, - padding: EdgeInsets.symmetric(vertical: 10), - child: ListView.builder( - itemCount: files.length, - physics: BouncingScrollPhysics(), - padding: EdgeInsets.only(left: 5), - scrollDirection: Axis.horizontal, - itemBuilder: (context, index) { - return Container( - width: 90, - margin: EdgeInsets.symmetric(horizontal: 15), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(10), - ), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - SvgPicture.asset( - 'assets/icons/files/' + files[index].type + '.svg', - width: 35, - ), - SizedBox(height: 8), - Text( - files[index].name + '.' + files[index].type, - style: TextStyle( - fontSize: 12, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w600, - color: textColor, - ), - ) - ], - ), - ); - }), - ); - } -} diff --git a/lib/widgets/search_bar.dart b/lib/widgets/search_bar.dart deleted file mode 100644 index 6efe66f..0000000 --- a/lib/widgets/search_bar.dart +++ /dev/null @@ -1,57 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class SearchBar extends StatefulWidget { - @override - _SearchBarState createState() => _SearchBarState(); -} - -class _SearchBarState extends State { - @override - Widget build(BuildContext context) { - return Container( - height: 50, - margin: EdgeInsets.symmetric(horizontal: 30, vertical: 30), - decoration: BoxDecoration( - color: Colors.white, - boxShadow: [ - BoxShadow( - blurRadius: 15, - offset: Offset(0, 10), - color: Colors.black.withOpacity(0.05), - spreadRadius: 10, - ) - ], - borderRadius: BorderRadius.circular(10), - ), - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 20), - child: Row( - children: [ - SvgPicture.asset( - 'assets/icons/search.svg', - color: textColor.withOpacity(0.5), - width: 24, - ), - SizedBox(width: 15), - Expanded( - child: TextField( - decoration: InputDecoration( - border: InputBorder.none, - hintText: 'Search Something', - hintStyle: TextStyle( - fontSize: 20, - color: textColor.withOpacity(0.3), - fontFamily: 'Quicksand', - fontWeight: FontWeight.w600, - ), - ), - ), - ) - ], - ), - ), - ); - } -} diff --git a/lib/widgets/section_heading.dart b/lib/widgets/section_heading.dart deleted file mode 100644 index 4e060a4..0000000 --- a/lib/widgets/section_heading.dart +++ /dev/null @@ -1,51 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; - -class SectionHeading extends StatelessWidget { - final String title; - final String option; - final bool isIcon; - - SectionHeading(this.title, this.option, this.isIcon); - - @override - Widget build(BuildContext context) { - return Column( - children: [ - Padding( - padding: EdgeInsets.symmetric(horizontal: 20), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text( - title, - style: TextStyle( - fontSize: 20, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w800, - color: textColor, - ), - ), - isIcon - ? Icon( - Icons.more_horiz, - size: 30, - color: textColor, - ) - : Text( - option, - style: TextStyle( - fontSize: 16, - fontFamily: 'Quicksand', - fontWeight: FontWeight.w900, - color: textColor, - ), - ), - ], - ), - ), - SizedBox(height: 10), - ], - ); - } -} diff --git a/lib/widgets/title_main.dart b/lib/widgets/title_main.dart deleted file mode 100644 index bc76dd5..0000000 --- a/lib/widgets/title_main.dart +++ /dev/null @@ -1,61 +0,0 @@ -import 'package:cloud_docs/utils.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class TitleMain extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Column( - children: [ - Padding( - padding: EdgeInsets.only(left: 20, right: 20, top: 10), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text('Hello again', style: headingStyle), - SvgPicture.asset( - 'assets/icons/menu.svg', - width: 32, - color: textColor, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.symmetric(horizontal: 20), - child: Row( - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Text('ErrorSense', style: headingStyle), - ], - ), - ) - ], - ); - } -} - -class TitleDocs extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Padding( - padding: EdgeInsets.only(left: 20, right: 20, top: 10), - child: Row( - children: [ - InkWell( - onTap: () { - controller.jumpToPage(0); - }, - child: Icon( - Icons.arrow_back_ios, - size: 24, - color: textColor, - ), - ), - SizedBox(width: 20), - Text('Document', style: headingStyle), - ], - ), - ); - } -}