This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Widget build(BuildContext context) { | |
| return DefaultTabController( | |
| length: 4, | |
| child: Scaffold( | |
| appBar: AppBar( | |
| bottom: TabBar( | |
| tabs: <Widget>[ | |
| Tab(text: 'Områden', icon: Icon(Icons.location_city)), | |
| Tab(icon: Icon(Icons.directions_walk)), | |
| Tab(icon: Icon(Icons.local_gas_station)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar(title: Text('Välkommen...')), | |
| floatingActionButton: Padding( | |
| padding: const EdgeInsets.all(16.0), | |
| child: FloatingActionButton.extended( | |
| onPressed: () { | |
| // Add your onPressed code here! | |
| Navigator.push( | |
| context, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| drawer: Drawer( | |
| child: ListView( | |
| padding: EdgeInsets.zero, | |
| children: <Widget>[ | |
| DrawerHeader( | |
| decoration: BoxDecoration( | |
| gradient: LinearGradient( | |
| colors: <Color>[Colors.blue, Colors.amberAccent], | |
| ), | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body: ListView( | |
| children: <Widget>[ | |
| Card( | |
| child: ListTile( | |
| title: Text('Patrik'), | |
| subtitle: Text('Lite text som sub...t'), | |
| trailing: Icon(Icons.alternate_email), | |
| onTap: () { | |
| print('Tryckte på P...'); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Card( | |
| child: ListTile( | |
| leading: GestureDetector( | |
| behavior: HitTestBehavior.translucent, | |
| onTap: () { | |
| print('Icon-tryck'); | |
| }, | |
| child: Container( | |
| width: 48, | |
| height: 48, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Get the ID of a given category | |
| $category_id = get_cat_ID( 'Category Name' ); | |
| // Get the URL of this category | |
| $category_link = get_category_link( $category_id ); | |
| ?> | |
| <!-- Print a link to this category --> | |
| <a href="<?php echo esc_url( $category_link ); ?>" title="Category Name">Category Name</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); | |
| function my_jquery_enqueue() { | |
| wp_deregister_script('jquery'); | |
| wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null); | |
| wp_enqueue_script('jquery'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .post-id {} | |
| .post {} | |
| .page {} | |
| .attachment {} | |
| .sticky {} | |
| .hentry {} | |
| .category-misc {} | |
| .category-example {} | |
| .tag-news {} | |
| .tag-wordpress {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #header .main-menu{} // container class | |
| #header .main-menu ul {} // container class first unordered list | |
| #header .main-menu ul ul {} //unordered list within an unordered list | |
| #header .main-menu li {} // each navigation item | |
| #header .main-menu li a {} // each navigation item anchor | |
| #header .main-menu li ul {} // unordered list if there is drop down items | |
| #header .main-menu li li {} // each drop down navigation item | |
| #header .main-menu li li a {} // each drap down navigation item anchor | |
| .current_page_item{} // Class for Current Page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Add facillity | |
| Plugin URI: https://github.com/ | |
| Description: Test | |
| Version: 0.0.1 | |
| Author: PL | |
| Author URI: https://github.com/ | |
| */ | |
NewerOlder