-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature_uff' into 'master'
feature_uff See merge request domib97/notes_app2!5
- Loading branch information
Showing
4 changed files
with
71 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_animate/flutter_animate.dart'; | ||
|
||
void main() { | ||
runApp(MyApp()); | ||
} | ||
|
||
class MyApp extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
title: 'Inbox', | ||
theme: ThemeData( | ||
primarySwatch: Colors.green, | ||
), | ||
home: InboxPage(), | ||
); | ||
} | ||
} | ||
|
||
class InboxPage extends StatefulWidget { | ||
@override | ||
_InboxPageState createState() => _InboxPageState(); | ||
const InboxPage({super.key}); | ||
} | ||
|
||
class _InboxPageState extends State<InboxPage> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: Text('Inbox'), | ||
centerTitle: true, | ||
), | ||
body: DefaultTabController( | ||
length: 3, | ||
child: Column( | ||
children: <Widget>[ | ||
const TabBar( | ||
indicatorColor: Colors.green, | ||
labelColor: Colors.green, | ||
tabs: [ | ||
Tab(text: 'A'), | ||
Tab(text: 'B'), | ||
Tab(text: 'C'), | ||
], | ||
), | ||
Expanded( | ||
child: TabBarView( | ||
children: [ | ||
Center(child: const Text('Content A', style: TextStyle(fontSize: 24)).animate().fade().scale().tint(color: Colors.pink)), | ||
Center(child: const Text('Content B', style: TextStyle(fontSize: 24)).animate().fade().scale().tint(color: Colors.cyanAccent)), | ||
Center(child: const Text('Content C', style: TextStyle(fontSize: 24)).animate().fade().scale().tint(color: Colors.greenAccent)), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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
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