diff --git a/assets/lock.png b/assets/lock.png new file mode 100644 index 0000000..b6f1c56 Binary files /dev/null and b/assets/lock.png differ diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 0c71e28..96b8aea 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -111,28 +111,130 @@ class HomeScreen extends StatelessWidget { backgroundColor: Color(0xffFFD58D), ), backgroundColor: Color(0xffF9F9F1), - body: _homeProvider.currentTab[_homeProvider.currentIndex], - bottomNavigationBar: BottomNavigationBar( - backgroundColor: Color(0xffFFD58D), - fixedColor: Colors.grey[850], - unselectedItemColor: Color(0xffBD935C), - type: BottomNavigationBarType.fixed, - onTap: (index) { - _homeProvider.currentIndex = index; - }, - currentIndex: _homeProvider.currentIndex, - items: [ - BottomNavigationBarItem( - icon: Image.asset('assets/block-space-disabled.png', height: 26), - activeIcon: Image.asset('assets/blockchain.png', height: 26), - label: 'Explorateur', - ), - BottomNavigationBarItem( - icon: Icon(Icons.lock), - label: 'Mes portefeuilles', - ), - ], - ), + body: // _homeProvider.currentTab[_homeProvider.currentIndex], + Column(children: [ + Padding( + padding: EdgeInsets.only(top: 22), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Image( + image: AssetImage('assets/icon/gecko_final.png'), + height: 180), + ])), + Padding( + padding: EdgeInsets.only(top: 15), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + "L’application de paiement Ğ1\nplus mobile qu’un lésard du Vietnam", + textAlign: TextAlign.center, + style: TextStyle(color: Colors.black, fontSize: 15), + ) + ])), + Padding( + padding: EdgeInsets.only(top: 60), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Column(children: [ + ClipOval( + child: Material( + color: Color(0xffFFD58D), // button color + child: Padding( + padding: EdgeInsets.all(17), + child: InkWell( + splashColor: Colors.black, // inkwell color + child: Image( + image: AssetImage('assets/qrcode-scan.png'), + height: 58), + onTap: () {}, + )), + ), + ), + SizedBox(height: 5), + Text( + "Payer par QR-Code", + textAlign: TextAlign.center, + style: TextStyle(color: Colors.black, fontSize: 13), + ) + ]) + ])), + Padding( + padding: EdgeInsets.only(top: 60), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Column(children: [ + ClipOval( + child: Material( + color: Color(0xffFFD58D), // button color + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: 18, vertical: 14), + child: InkWell( + splashColor: Colors.black, // inkwell color + child: Image( + image: AssetImage('assets/blockchain.png'), + height: 65), + onTap: () {}, + )), + ), + ), + SizedBox(height: 5), + Text( + "Explorer\n", + textAlign: TextAlign.center, + style: TextStyle(color: Colors.black, fontSize: 13), + ) + ]), + SizedBox(width: 160), + Column(children: [ + ClipOval( + child: Material( + color: Color(0xffFFD58D), // button color + child: Padding( + padding: EdgeInsets.all(20), + child: InkWell( + splashColor: Colors.black, // inkwell color + child: Image( + image: AssetImage('assets/lock.png'), + height: 50), + onTap: () {}, + )), + ), + ), + SizedBox(height: 5), + Text( + "Gérer mes\nportefeuilles", + textAlign: TextAlign.center, + style: TextStyle(color: Colors.black, fontSize: 13), + ) + ]) + ])) + ]), + // bottomNavigationBar: BottomNavigationBar( + // backgroundColor: Color(0xffFFD58D), + // fixedColor: Colors.grey[850], + // unselectedItemColor: Color(0xffBD935C), + // type: BottomNavigationBarType.fixed, + // onTap: (index) { + // _homeProvider.currentIndex = index; + // }, + // currentIndex: _homeProvider.currentIndex, + // items: [ + // BottomNavigationBarItem( + // icon: Image.asset('assets/block-space-disabled.png', height: 26), + // activeIcon: Image.asset('assets/blockchain.png', height: 26), + // label: 'Explorateur', + // ), + // BottomNavigationBarItem( + // icon: Icon(Icons.lock), + // label: 'Mes portefeuilles', + // ), + // ], + // ), ); } } diff --git a/pubspec.yaml b/pubspec.yaml index ce9ab7b..49542f5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: A new Flutter project. # pub.dev using `pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 0.0.1+11 +version: 0.0.1+13 environment: sdk: ">=2.7.0 <3.0.0" @@ -64,4 +64,5 @@ flutter: - assets/blockchain.png - assets/block-space.png - assets/block-space-disabled.png + - assets/lock.png