diff --git a/assets/images/picscreen1.1.jpg b/assets/images/picscreen1.1.jpg new file mode 100644 index 0000000..e7f3f74 Binary files /dev/null and b/assets/images/picscreen1.1.jpg differ diff --git a/lib/Info_book/Buy_button.dart b/lib/Info_book/Buy_button.dart new file mode 100644 index 0000000..4fb11ab --- /dev/null +++ b/lib/Info_book/Buy_button.dart @@ -0,0 +1,36 @@ + +import 'package:flutter/material.dart'; +import 'package:get/get.dart'; + +import '../bookmodel.dart'; + +class Buybutton extends StatelessWidget { + const Buybutton({Key? key, required this.book}): super(key: key); + final Book book; + @override + Widget build(BuildContext context) { + return TextButton( + onPressed: () { + Book.cart.add(book); + Navigator.pop(context); + }, + child: Container( + width: 335, + height: 60, + margin: const EdgeInsets.symmetric(vertical: 20), + padding: const EdgeInsets.all(15), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(20), + color: Colors.black), + child: Text( + 'Buy Now for ${book.price}', + textAlign: TextAlign.center, + style: const TextStyle( + fontSize: 18, + color: Colors.white, + fontWeight: FontWeight.bold), + ), + ), + ); + } +} diff --git a/lib/Info_book/Info.dart b/lib/Info_book/Info.dart new file mode 100644 index 0000000..1f6247c --- /dev/null +++ b/lib/Info_book/Info.dart @@ -0,0 +1,80 @@ +import 'package:book_store_app/bookmodel.dart'; +import 'package:flutter/material.dart'; + +class Info extends StatelessWidget { + const Info({ + Key? key, + required this.book, + }) : super(key: key); + + final Book book; + + @override + Widget build(BuildContext context) { + return Expanded( + flex: 3, + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.only(bottom: 10), + child: Text( + book.book_name, + style: const TextStyle( + fontSize: 26, + color: Colors.black, + fontWeight: FontWeight.bold, + ), + ), + ), + Padding( + padding: const EdgeInsets.only(bottom: 10), + child: Text( + book.author, + style: const TextStyle( + fontSize: 16, + color: Colors.grey, + fontWeight: FontWeight.normal, + ), + ), + ), + Padding( + padding: const EdgeInsets.only(bottom: 10), + child: Row(mainAxisAlignment: MainAxisAlignment.center, children: const [ + Padding( + padding: EdgeInsets.only(right: 2), + child: Icon(Icons.star, size: 16, color: Colors.orange), + ), + Icon(Icons.star, size: 16, color: Colors.orange), + Icon(Icons.star, size: 16, color: Colors.orange), + Icon(Icons.star, size: 16, color: Colors.grey), + Padding( + padding: EdgeInsets.symmetric(horizontal: 5), + child: Text( + '4.0/5.0', + style: TextStyle( + fontSize: 16, + color: Colors.black, + fontWeight: FontWeight.bold, + ), + ), + ) + ]), + ), + Padding( + padding: const EdgeInsets.only(bottom: 10), + child: Text( + book.description, + textAlign: TextAlign.center, + style: const TextStyle( + fontSize: 16, + color: Colors.grey, + fontWeight: FontWeight.normal, + ), + ), + ), + ], + ), + ); + } +} diff --git a/lib/Info_book/InfoButtons.dart b/lib/Info_book/InfoButtons.dart new file mode 100644 index 0000000..57b095a --- /dev/null +++ b/lib/Info_book/InfoButtons.dart @@ -0,0 +1,47 @@ +import 'package:flutter/material.dart'; + +class InfoButton extends StatelessWidget { + const InfoButton({ + Key? key, + required this.icon, + required this.text, + }) : super(key: key); + + final IconData icon; + final String text; + @override + Widget build(BuildContext context) { + return Container( + width: 154, + height: 40, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(15), + color: Colors.white), + child: Align( + alignment: Alignment.center, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon( + icon, + size: 24, + color: Colors.black, + ), + const SizedBox( + width: 8, + ), + Text( + text, + style: const TextStyle( + fontSize: 18, + fontWeight: FontWeight.bold, + color: Colors.black), + ) + ], + ), + ), + ); + } +} +/* +*/ \ No newline at end of file diff --git a/lib/Info_book/Info_page.dart b/lib/Info_book/Info_page.dart new file mode 100644 index 0000000..f4a95e4 --- /dev/null +++ b/lib/Info_book/Info_page.dart @@ -0,0 +1,49 @@ +import 'package:book_store_app/Info_book/InfoButtons.dart'; +import 'package:book_store_app/Info_book/Info.dart'; +import 'package:book_store_app/Info_book/book_image.dart'; +import 'package:book_store_app/bookmodel.dart'; +import 'package:flutter/material.dart'; +import '../add_book_page/app_bar_addpage.dart'; +import 'Buy_button.dart'; + +class Infopage extends StatelessWidget { + const Infopage({Key? key, required this.book}) : super(key: key); + + final Book book; + + @override + Widget build(BuildContext context) { + return SafeArea( + child: Scaffold( + backgroundColor: const Color.fromARGB(255, 245, 245, 245), + body: Padding( + padding: const EdgeInsets.all(20), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const AppBaradd(), + MyBookImage(book: book), + Info(book: book), + + Stack(children: [ + Column( + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + crossAxisAlignment: CrossAxisAlignment.center, + children: const [ + InfoButton(icon: Icons.menu_outlined, text: 'Preview'), + InfoButton(icon: Icons.comment_outlined, text: 'Reviews') + ], + ), + Buybutton(book:book,), + ], + ) + ]) + ], + ), + ), + ), + ); + } +} diff --git a/lib/Info_book/book_image.dart b/lib/Info_book/book_image.dart new file mode 100644 index 0000000..b23f995 --- /dev/null +++ b/lib/Info_book/book_image.dart @@ -0,0 +1,26 @@ +import 'package:book_store_app/bookmodel.dart'; +import 'package:flutter/material.dart'; + +class MyBookImage extends StatelessWidget { + const MyBookImage({ + Key? key, + required this.book, + }) : super(key: key); + + final Book book; + + @override + Widget build(BuildContext context) { + return Expanded( + flex: 5, + child: Container( + margin: const EdgeInsets.symmetric(vertical: 20), + width: 250, + decoration: BoxDecoration( + image: DecorationImage( + image: NetworkImage(book.image_link.toString()),fit: BoxFit.cover), + borderRadius: BorderRadius.circular(10)), + ), + ); + } +} diff --git a/lib/Main_page/Search.dart b/lib/Main_page/Search.dart new file mode 100644 index 0000000..5cb772c --- /dev/null +++ b/lib/Main_page/Search.dart @@ -0,0 +1,50 @@ +import 'package:flutter/material.dart'; +import 'package:get/get.dart'; + +class Search extends StatelessWidget { + const Search({ + Key? key, + required this.SearchController, + required this.typed, + }) : super(key: key); + + final TextEditingController SearchController; + final RxString typed; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 20), + child: TextField( + controller: SearchController, + onChanged: (x) { + typed.value = x; + }, + style: const TextStyle(fontSize: 20), + decoration: InputDecoration( + filled: true, + fillColor: Colors.white, + hintText: 'Search .....', + enabledBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(20), + borderSide: BorderSide.none, + ), + focusedBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(20), + borderSide: BorderSide.none, + ), + suffixIcon: TextButton( + child: Obx(() { + return Icon( + Icons.search_rounded, + color: typed.isEmpty ? Colors.grey : Colors.blue, + size: 30, + ); + }), + onPressed: () {}, + ), + ), + ), + ); + } +} diff --git a/lib/Main_page/appbar.dart b/lib/Main_page/appbar.dart new file mode 100644 index 0000000..568c8b9 --- /dev/null +++ b/lib/Main_page/appbar.dart @@ -0,0 +1,33 @@ +import 'package:flutter/material.dart'; + +class MYAppBar extends StatelessWidget { + const MYAppBar({ + Key? key, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + return Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Container( + margin: const EdgeInsets.only(right: 10), + width: 40, + height: 40, + decoration: BoxDecoration( + image: const DecorationImage( + image: AssetImage('assets/images/picscreen1.1.jpg'), fit: BoxFit.cover), + borderRadius: BorderRadius.circular(10)), + ), + const Expanded( + child: Text( + 'Hi,Fanar!', + style: TextStyle( + fontSize: 16, fontWeight: FontWeight.bold, color: Colors.black), + ), + ), + const Icon(Icons.more_vert, size: 24, color: Colors.black) + ], + ); + } +} diff --git a/lib/Main_page/button.dart b/lib/Main_page/button.dart new file mode 100644 index 0000000..214ed23 --- /dev/null +++ b/lib/Main_page/button.dart @@ -0,0 +1,51 @@ +import 'package:book_store_app/Main_page/mainpage.dart'; +import 'package:flutter/material.dart'; +import '../add_book_page/add_book_page.dart'; +import '../cart_page/cart_page.dart'; +import 'icon_button.dart'; + +class Button extends StatelessWidget { + const Button({ + Key? key, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + return FloatingActionButton( + backgroundColor: Colors.white, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(20)), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + TextButton( + onPressed: () { + Navigator.push(context,MaterialPageRoute(builder: (context) => const MainPage())); + }, + child: const MyIcons(icon: Icons.home)), + TextButton( + onPressed: () { + Navigator.push(context,MaterialPageRoute(builder: (context) => const CartPage())); + }, + child: const MyIcons(icon: Icons.shopping_cart_outlined)), + TextButton( + onPressed: () { + Navigator.push(context,MaterialPageRoute(builder: (context) => const AddBook())); + }, + child: const MyIcons(icon: Icons.add)), + ]), + onPressed: () {}, + ); + } +} + + + + + + + + + + + diff --git a/lib/Main_page/icon_button.dart b/lib/Main_page/icon_button.dart new file mode 100644 index 0000000..13ff09b --- /dev/null +++ b/lib/Main_page/icon_button.dart @@ -0,0 +1,20 @@ + +import 'package:flutter/material.dart'; + +class MyIcons extends StatelessWidget { + const MyIcons({ + Key? key, + required this.icon, + }) : super(key: key); + + final IconData icon; + + @override + Widget build(BuildContext context) { + return Icon( + icon, + color: Colors.grey, + size: 30, + ); + } +} \ No newline at end of file diff --git a/lib/Main_page/mainpage.dart b/lib/Main_page/mainpage.dart new file mode 100644 index 0000000..1a8caae --- /dev/null +++ b/lib/Main_page/mainpage.dart @@ -0,0 +1,71 @@ +import 'package:book_store_app/bookmodel.dart'; +import 'package:book_store_app/Main_page/button.dart'; +import 'package:book_store_app/Main_page/shape_list_book.dart'; +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:get/get.dart'; +import 'Search.dart'; +import 'appbar.dart'; + +class MainPage extends StatefulWidget { + const MainPage({ + Key? key, + }) : super(key: key); + + @override + State createState() => _MainPageState(); +} + +class _MainPageState extends State { + final TextEditingController SearchController = TextEditingController(); + RxString typed = ''.obs; + + @override + Widget build(BuildContext context) { + return SafeArea( + child: Scaffold( + backgroundColor: CupertinoColors.systemGrey6, + body: Padding( + padding: const EdgeInsets.all(20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + MYAppBar(), + Search(SearchController:SearchController, typed:typed), + + const Padding( + padding: EdgeInsets.only(bottom: 20), + child: Text( + 'Book List', + style: TextStyle( + fontSize: 24, + fontWeight: FontWeight.bold, + color: Colors.black, + ), + ), + ), + + + Expanded( + child: Obx(() { + return ListView( + children: typed.value.isEmpty + ? Book.books.map((e) => Shape(book: e)).toList() + : Book.books.where((e) => e.book_name.toLowerCase().contains(typed.toLowerCase())) + .map((e) => Shape(book: e)) + .toList()); + }), + ), + ], + ), + ), + floatingActionButton: const SizedBox( + height: 60, + width: 200, + child:Button(), + ), + floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, + ), + ); + } +} diff --git a/lib/Main_page/shape_list_book.dart b/lib/Main_page/shape_list_book.dart new file mode 100644 index 0000000..d0ab0e4 --- /dev/null +++ b/lib/Main_page/shape_list_book.dart @@ -0,0 +1,88 @@ +import 'package:flutter/material.dart'; +import '../bookmodel.dart'; +import '../Info_book/Info_page.dart'; + +class Shape extends StatefulWidget { + const Shape({Key? key, required this.book}) : super(key: key); + + final Book book; + + @override + State createState() => _ShapeState(); +} + +class _ShapeState extends State { + @override + Widget build(BuildContext context) { + return TextButton( + onPressed: () { + Navigator.push(context,MaterialPageRoute( + builder: (context) => Infopage(book: widget.book))); + }, + child: Padding( + padding: const EdgeInsets.only(bottom: 15), + child: Row( + children: [ + Container( + margin: const EdgeInsets.only(right: 10), + width: 72, + height: 105, + decoration: BoxDecoration( + image: DecorationImage( + image: NetworkImage(widget.book.image_link), + fit: BoxFit.cover), + borderRadius: BorderRadius.circular(5), + color: Colors.blue), + ), + SizedBox( + height: 100, + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + widget.book.book_name, + style: const TextStyle( + fontSize: 18, + color: Colors.black, + fontWeight: FontWeight.bold, + ), + ), + Text( + widget.book.author, + style: const TextStyle( + fontSize: 14, + color: Colors.grey, + fontWeight: FontWeight.normal, + ), + ), + Text( + widget.book.price, + style: const TextStyle( + fontSize: 16, + color: Colors.black, + fontWeight: FontWeight.bold, + ), + ), + Row( + mainAxisAlignment: MainAxisAlignment.start, + children: const [ + + Padding( + padding: EdgeInsets.only(right: 2), + child: Icon(Icons.star, size: 16, color: Colors.orange), + ), + Icon(Icons.star, size: 16, color: Colors.orange), + Icon(Icons.star, size: 16, color: Colors.orange), + Icon(Icons.star, size: 16, color: Colors.grey), + + ]) + ], + ), + ) + ], + ), + ), + ); + } +} diff --git a/lib/add_book_page/add_book_page.dart b/lib/add_book_page/add_book_page.dart new file mode 100644 index 0000000..d1596b6 --- /dev/null +++ b/lib/add_book_page/add_book_page.dart @@ -0,0 +1,78 @@ +import 'package:book_store_app/add_book_page/add_page_button.dart'; +import 'package:book_store_app/add_book_page/mytextfield.dart'; +import 'package:flutter/material.dart'; +import 'app_bar_addpage.dart'; + +class AddBook extends StatefulWidget { + const AddBook({Key? key, }) : super(key: key); + @override + State createState() => _AddBookState(); +} + +class _AddBookState extends State { + final book_name = TextEditingController(); + final author_name = TextEditingController(); + final price = TextEditingController(); + final description = TextEditingController(); + final image_link = TextEditingController(); + + @override + Widget build(BuildContext context) { + + return SafeArea( + child: Scaffold( + backgroundColor: const Color.fromARGB(255, 245, 245, 245), + body: Padding( + padding: const EdgeInsets.all(20), + child: Column( + children: [ + const AppBaradd(), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 15), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Padding( + padding: EdgeInsets.only(bottom: 20), + child: Text( + 'Add Book', + style: TextStyle( + fontSize: 24, + fontWeight: FontWeight.bold, + color: Colors.black, + ), + ), + ), + MyTextField( + hint: 'Book Name..', + mycontroller: book_name, + ), + MyTextField( + hint: 'Author Name..', + mycontroller: author_name, + ), + MyTextField( + hint: 'Book Price..', + mycontroller: price, + ), + MyTextField( + hint: 'Image Link...', + mycontroller: image_link, + ), + MyTextField( + hint: 'Book Description..', + mycontroller: description, + ), + + Add_page_buttons(), + + ], + ), + ) + ], + ), + )), + ); + } +} diff --git a/lib/add_book_page/add_page_button.dart b/lib/add_book_page/add_page_button.dart new file mode 100644 index 0000000..40dbaef --- /dev/null +++ b/lib/add_book_page/add_page_button.dart @@ -0,0 +1,49 @@ +import '../bookmodel.dart'; +import 'package:flutter/material.dart'; + +class Add_page_buttons extends StatelessWidget { + Add_page_buttons({Key? key,}) : super(key: key); + + + final book_name = TextEditingController(); + final author_name = TextEditingController(); + final price = TextEditingController(); + final description = TextEditingController(); + final image_link = TextEditingController(); + + + + @override + Widget build(BuildContext context) { + return TextButton( + onPressed: () { + Book book = Book( + book_name.text, + author_name.text, + description.text, + price.text, + image_link.text, + ); + Book.books.add(book); + Navigator.pop(context); + }, + child: Container( + width: 335, + height: 60, + margin: const EdgeInsets.symmetric(vertical: 20), + padding: const EdgeInsets.all(15), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(20), + color: Colors.black), + child: const Text( + 'Add', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 18, + color: Colors.white, + fontWeight: FontWeight.bold), + ), + ), + ); + } +} diff --git a/lib/add_book_page/app_bar_addpage.dart b/lib/add_book_page/app_bar_addpage.dart new file mode 100644 index 0000000..61cb204 --- /dev/null +++ b/lib/add_book_page/app_bar_addpage.dart @@ -0,0 +1,30 @@ +import 'package:flutter/material.dart'; + +class AppBaradd extends StatelessWidget { + const AppBaradd({ + Key? key, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 20), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Icon(Icons.arrow_back_ios, size: 24, color: Colors.black), + ), + //Expanded(child: SizedBox()), + TextButton( + onPressed: () {}, + child: const Icon(Icons.more_vert, size: 26, color: Colors.black)) + ], + ), + ); + } +} diff --git a/lib/add_book_page/mytextfield.dart b/lib/add_book_page/mytextfield.dart new file mode 100644 index 0000000..027fe17 --- /dev/null +++ b/lib/add_book_page/mytextfield.dart @@ -0,0 +1,47 @@ +import 'package:flutter/material.dart'; + + +class MyTextField extends StatefulWidget { + const MyTextField({ + Key? key, + required this.hint, + required this.mycontroller, + }) : super(key: key); + + final String hint; + final TextEditingController mycontroller; + + @override + State createState() => _MyTextFieldState(); +} + +class _MyTextFieldState extends State { + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 15), + child: TextField( + controller: widget.mycontroller, + onSubmitted: (x) { + widget.mycontroller.text = x; + setState(() {}); + }, + style: const TextStyle(fontSize: 20), + + decoration: InputDecoration( + filled: true, + fillColor: Colors.white, + hintText: widget.hint, + enabledBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(20), + borderSide: BorderSide.none, + ), + focusedBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(20), + borderSide: BorderSide.none, + ), + ), + ), + ); + } +} diff --git a/lib/bookmodel.dart b/lib/bookmodel.dart new file mode 100644 index 0000000..d0fad7a --- /dev/null +++ b/lib/bookmodel.dart @@ -0,0 +1,34 @@ +import 'package:get/get.dart'; + +class Book { + final String book_name; + final String author; + final String description; + final String price; + final String image_link; + + + + Book(this.book_name, this.author, this.description,this.price, + this.image_link); + + static RxList books = [book1, book2].obs; + static RxList cart = [].obs; +} + +Book book1 = Book( + 'Yves Saint Laurent', + 'Suzy Menkes ', + 'A spectacular visual journey through 40 years of haute couture from one of the' + ' best-known and most trend-setting brands in fashion.', + r'$46.99', + 'https://images-na.ssl-images-amazon.com/images/I/31YqLaWKzeL._SX340_BO1,204,203,200_.jpg', +); + +Book book2 = Book( + 'The Book of Signs', + 'Rudolf Koch ', + "A spectacular visual journey through 40 years of haute couture from one of the best-known and most trend-setting brands in fashion.", + r'$99.99', + 'https://images-na.ssl-images-amazon.com/images/I/41ChCHUmY0L._SX331_BO1,204,203,200_.jpg', +); diff --git a/lib/cart_page/cart_page.dart b/lib/cart_page/cart_page.dart new file mode 100644 index 0000000..bd82a5b --- /dev/null +++ b/lib/cart_page/cart_page.dart @@ -0,0 +1,48 @@ +import 'package:book_store_app/bookmodel.dart'; +import 'package:book_store_app/Main_page/button.dart'; +import 'package:book_store_app/Main_page/shape_list_book.dart'; +import 'package:flutter/material.dart'; +import '../add_book_page/app_bar_addpage.dart'; + +class CartPage extends StatelessWidget { + const CartPage({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return SafeArea( + child: Scaffold( + body: Padding( + padding: const EdgeInsets.all(20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const AppBaradd(), + const Padding( + padding: EdgeInsets.only(left: 15, bottom: 20), + child: Text( + 'Cart', + style: TextStyle( + fontSize: 24, + fontWeight: FontWeight.bold, + color: Colors.black, + ), + ), + ), + Expanded( + child: ListView( + children:Book.cart.map((e) => Shape(book: e)).toList()), + ), + ], + ), + ), + floatingActionButton: const SizedBox( + height: 60, + width: 200, + child: Button(), + ), + floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, + ), + ); + } +} diff --git a/lib/main.dart b/lib/main.dart index bcc58f7..4065d8e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,4 @@ +import 'package:book_store_app/Main_page/mainpage.dart'; import 'package:flutter/material.dart'; void main() { @@ -9,12 +10,11 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - return const MaterialApp( - home: Scaffold( - body: Center( - child: Text("Book Store App"), - ), - ), + return MaterialApp( + debugShowCheckedModeBanner: false, + title: 'Book Store App', + theme: ThemeData(primaryColor: Colors.blue), + home: const MainPage(), ); } } diff --git a/pubspec.yaml b/pubspec.yaml index cd0f457..47ca979 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,6 +29,8 @@ environment: dependencies: flutter: sdk: flutter + get: ^4.6.5 + # The following adds the Cupertino Icons font to your application. @@ -56,6 +58,9 @@ flutter: # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true + assets: + - assets/images/picscreen1.1.jpg + # To add assets to your application, add an assets section, like this: # assets: @@ -76,7 +81,7 @@ flutter: # fonts: # - family: Schyler # fonts: - # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-flutter pub add getRegular.ttf # - asset: fonts/Schyler-Italic.ttf # style: italic # - family: Trajan Pro