Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

basic ui toolkit

a basic ui toolkit to get you started with flutter application development.

widget list:

  • schooltoolkitbutton: button with a busy indicator
  • schoollocationwidget: card to display school information
  • outlinedbutton: button with only outline border with a busy indicator
  • schooltoolkittextfield: custom text field
  • schooltoolkitrolebutton: animated role selection button
  • overlappingbuttoncard: overlapping container with a hovering button on the bottom
  • calendar: calendar with two view states: [expanded(shows the entire calendar), shrink(shows only a week)]
  • nepalicalendar: nepali calendar with two view states: [expanded(shows the entire calendar), shrink(shows only a week)]
  • eventcard: displays the time and event
  • routinecard: displays the name of class, subject, time and professor.
  • deadlinecard: display a deadline
  • assignmentcard: displays the assignment, deadline, subject with optional parameters to handle upload
  • highlightedicon: custom container that highlights the icon passed. takes in an optional busy parameter to display loading indicator.
  • featuredvideocard: display a featured video thumbnail with a title.
  • videolisttilecard: display a listtile with thumbnail, title and author.
  • profilecard: custom profile card.
  • busroutewidget: display a bus route. takes in title and a subtitle.
  • noticecard: custom notice widget that takes in title, subtitle, formatted date string with exposed on tap handler.
  • labelcard: display a custom text label. takes in label string, width, height, text style and color.

example

the example file contains a catalog for all the available widgets.

schooltoolkitbutton

schooltoolkitbutton(
    onpressed: () {
        // handle on pressed
    },
    busy: true, // defaults to false
    label: 'text label'.touppercase(),
),

toolkit button

schoollocationwidget

schoollocationwidget(
    imageurl: 'http://via.placeholder.com/350x350',
    address: 'area 69',
    name: 'alien high school',
),

school location widget

outlinedbutton

outlinedbutton(
    onpressed: () {
        // handle on pressed
    },
    busy: true, // defaults to false
    label: 'edit info'.touppercase(),
),

outlined button

schooltoolkittextfield

schooltoolkittextfield(
    hint: 'custom text field',
    controller: ...,
    errortext: ...,
    key: ...,
    label: ...,
    obscuretext: ...,
    onchanged: ...,
    onfieldsubmitted: ...,
    onsaved: ...,
    ontap: ...,
),

custom text field

schooltoolkitrolebutton

schooltoolkitrolebutton(
    icondata: fontawesomeicons.usergraduate,
    label: 'student'.touppercase(),
    selected: true, // defaults to false
),

role button

overlappingbuttoncard

overlappingbuttoncard(
    width: 354,
    height: 589,
    label: 'button label'.touppercase(),
    onpressed: () {
        // handle on presssed
    },
    chld: ...,
    padding: ..., // optional field
),

overlapping button card

calendar

calendar(
    startexpanded: true, // set this to false if you need the calendar to be built shrinked (show only active week)
    ondateselected: (date) {
        print('selected date: $date');
        // handle date selection
    },
    onnextmonth: (date) {
        print('next month: $date');
        // handle on next month.
    },
    onpreviousmonth: (date) {
        print('previous month: $date');
        // handle previous month
    },
    calendarevents: [
        calendarevent.fromdatetime(
            datetime: datetime.now(),
            color: schooltoolkitcolors.red,
        ),
    ],
    recurringeventsbyday: [
        calendarevent.fromdatetime(
            datetime: datetime(2020, 7, 1),
            color: schooltoolkitcolors.blue,
        ),
        calendarevent.fromdatetime(
            datetime: datetime(2020, 7, 2),
            color: schooltoolkitcolors.red,
        ),
    ],
    recurringeventsbyweekday: [
        calendarevent.fromweekday(
            weekday: datetime.sunday,
            color: schooltoolkitcolors.green,
            holiday: true,
        ),
    ],
),

calendar

nepalicalendar

important: please note the date returned by the nepalicalendar methods use the nepalidatetime instead of datetime class

nepalicalendar(
    startexpanded: true, // set this to false if you need the calendar to be built shrinked (show only active week)
    ondateselected: (date) {
        print('selected date: $date');
        // handle date selection
    },
    onnextmonth: (date) {
        print('next month: $date');
        // handle on next month.
    },
    onpreviousmonth: (date) {
        print('previous month: $date');
        // handle previous month
    },
    calendarevents: [
        nepalicalendarevent.fromdatetime(
            datetime: nepalidatetime.now(),
            color: schooltoolkitcolors.red,
        ),
    ],
    recurringeventsbyday: [
        nepalicalendarevent.fromdatetime(
            datetime: nepalidatetime(2020, 7, 1),
            color: schooltoolkitcolors.green,
        ),
    ],
    recurringeventsbyweekday: [
        nepalicalendarevent.fromweekday(
            weekday: 1,
            color: schooltoolkitcolors.brown,
        ),
    ],
),

nepali calendar

eventcard

eventcard(
    event: 'sports week class 3 - class 10',
    time: '1:00 - 3:00 pm',
    secondarycolor: schooltoolkitcolors.lightergrey,
    primarycolor: schooltoolkitcolors.grey,
),

event card

routinecard

routinecard(
    classtopic: 'fundamentals of mathematics',
    classtype: 'theory class',
    subject: 'mathematics',
    professor: 'mr. ram prasad yadav',
    time: '8:00 - 9:00 am',
),

routine card

deadlinecard

 deadlinecard(
    deadline: datetime.now(),
    secondarycolor: ..., // optional
    primarycolor: ..., // optional
),

deadline card

assignmentcard

assignmentcard(
    // optional, if deadline is not passed, deadline card will not be shown
    deadline: datetime.now(),
    question:
        'chapter 3 - q.no 1 - q.no 10 (please submit in word format with names attached)',
    subject: 'mathematics',
    teacher: 'dr. stone',
    deadlinebackgroundcolor: schooltoolkitcolors.red,
    onuploadhandler: () {
        print('handle upload');
        // optional, if null is passsed upload button will be hidden
    },
    // optional, if filename is not passed, file name row will not be displayed
    filename: 'roll24_ramanshrestha.pdf',
    // optional,
    filesize: '1.2 mb',
    onfiletaphandler: () {
        print('handle file tap');
        // optional
    },
    onunsubmithandler: () {
        print('handle unsubmit');
        // optional
    },
),

assignment card

highlightedicon

highlightedicon(
    icon: icons.class_,
    busy: true, // optional. if busy is set to true, displays a loading indicator instead of the icons passed.
),

highlighted icon

featuredvideocard

featuredvideocard(
    title: 'professor kpr lecture - neuroscience lecture 32',
    thumbnailurl:
        'https://www.teachermagazine.com.au/files/ce-image/cache/1c03ffc10fd4ef6a/cognitive_load_theory_-_teaching_strategies_855_513_60.jpg',
    ontap: () {
        print('handling on tap');
    },
),

featured video card

videolisttilecard

videolisttilecard(
    author: 'dr. richard',
    title: 'the science of gamma radiation.',
    margin: edgeinsets.all(5.0),
    thumbnailurl:
        'https://www.teachermagazine.com.au/files/ce-image/cache/1c03ffc10fd4ef6a/cognitive_load_theory_-_teaching_strategies_855_513_60.jpg',
    color: ..., // optional. use to set the background color of the tile
    ontap: ..., // optional. use to handle on tap
    padding: ..., // optional. use to add desired padding
    showicon: ..., // optional. set this to flase if you don't want the icon besides the author.
),

video list tile card

profilecard

profilecard(
    imageurl:
        'https://cdn1.iconfinder.com/data/icons/female-avatars-vol-1/256/female-portrait-avatar-profile-woman-sexy-afro-2-512.png',
    email: '[email protected]',
    name: 'dr. steven stones',
    phonenumber: '9843xxxxxx',
    post: 'sorceror',
    margin: edgeinsets.all(5.0), // optional
),

profile card

busroutewidget

informationtilewidget(
    margin: edgeinsets.all(5.0),
    icon: fontawesomeicons.bus,
    biggertitle: true,
    title: 'bus route 1',
    subtitle: 'tinkune-dhobhighat-newroad',
    iconcolor: colors.white,
    rounded: false,
    iconbackgroundcolor: schooltoolkitcolors.blue,
    ontap: ..., // optional.
),

bus route widget

noticecard

noticecard(
    date: dateformat('yyyy-mm-dd').format(datetime.now()),
    title: 'school reopens',
    subtitile:
        'lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',
    ontap: () {
        // handle readmore
    },
),

notice card

labelcard

labelcard(
    label: 'text label',
    color: schooltoolkitcolors.red,
    height: ..., // optional
    width: ..., // optional
    textstyle: ..., // optional
),

label card


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.