Coder Social home page Coder Social logo

udacity_quiz_13's Introduction

Udacity Quiz - Own category widget

Completing the quiz: Code Your Own Category Widget

Requirements

In this exercise, you'll finish the implementation of the Category widget.

So that you don't have to guess the sizes, use these:

Widget height: 100.0
Icon size: 60.0
Icon-with-colored-background width: 70.0
Text size: 24.0

Goals

Using the existing Flutter widgets, build a custom Category widget.
Customize the widget to your liking.

Steps

Fill out the TODOs in category.dart and main.dart using the specs below.
Customize your Category widget if desired. Some ideas are listed below.

Specs

The icon, color, and text should be passed into the Category widget upon instantiation. They should be required.
Height of the Category widget is 100.0. Its padding is 8.0.
The widget's border radius is half of the Category height (in this case, 50.0). You can define both the height and the border radius as constants.
Icon size is 60.0. The padding around the icon is 16.0.
Text size is 24.0.
The InkWell will not animate if the onTap function is null. Use a print statement for now, as a placeholder. i.e. onTap: () { print('I was tapped!'); }.
The InkWell's splash and highlight colors should be the color we pass in.

Initial Code

https://github.com/flutter/udacity-course/tree/master/course/02_category_widget/task_02_category_widget

Flutter Widgets

https://flutter.io/widgets/

Reference

https://github.com/flutter/udacity-course/tree/master/

Screenshots

Samples Samples Samples Samples

udacity_quiz_13's People

Contributors

naagalgates avatar

Stargazers

Michal Taratuta avatar

Watchers

James Cloos avatar  avatar

Forkers

nqn6-5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.