Last active
February 2, 2022 13:45
-
-
Save AbhishekDoshi26/9c307ac7f624ca251a3d281d0c870c05 to your computer and use it in GitHub Desktop.
This file contains 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
import 'package:asset_generation/page2.dart'; | |
import 'package:flutter/material.dart'; | |
class Page1 extends StatelessWidget { | |
const Page1({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: const Text('Page 1'), | |
), | |
floatingActionButton: FloatingActionButton( | |
child: const Icon(Icons.next_plan), | |
onPressed: () => Navigator.of(context).push( | |
MaterialPageRoute( | |
builder: (context) => const Page2(), | |
), | |
), | |
), | |
body: Center( | |
child: Image.asset('assets/dash.png'), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment